Add check for base_prefix indicating Radicale running at site root (/)#1343
Add check for base_prefix indicating Radicale running at site root (/)#1343pbiering merged 1 commit intoKozea:masterfrom fasterit:master
Conversation
|
Please check format, according to "Files changed" unexpected indent is inserted? |
|
That is intentional to get the block under the |
|
Have you tested reachability of your code? I think it will never be reached as it is after the before: after: |
|
hm, let me check that again. We changed a few more things in the course of getting the |
|
We reverted back to |
|
I'm still wondering why this was set at all, what is the sense behind? Patch would not be required if this RequestHeader is not set |
|
Because the docs say to set that and it is common on other web applications that are proxied. #1310 wants to fix the docs. Which is - imho - less likely to work than just doing the right thing in the code. |
|
current doc says I would not change the code if it's only about documentation. |
|
The doc is an example if people run their |
|
#1310 was merged today, is this PR then still valid? |
|
Sure, it still saves people that have not spotted the newly added info in the |
|
this PR breaks checks |
|
Yeah, somebody wrote an explicit test for the "/" -> force user to unset X-Script-Name case. Let's keep it as is. |
Alternative to PR #1310 (which in turn documents the issue from #1210)
This small code amendment makes it more easy for users than having to do the right thing™ from documentation which is a bit non-intuitive