This fixes double-slash issues in URLs served over werkzeug (used inside
Flask).
Details
test suite works, I also ran rpmlint and upgradepath
Diff Detail
- Repository
- rLTRN libtaskotron
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Overall, looks good to me. Listed some thoughts on the comments in the example yaml but I'm not terribly attached to the changes - either way is fine.
conf/taskotron.yaml.example | ||
---|---|---|
58–59 | I'm not sure this has to be after every entry. I also think that changing the warning to something along the lines of "Trailing slashes at the end of URLs will lead to double slashes when rendered and not all application servers handle that gracefully" would be more precise than "don't do this!" written before every entry. |
conf/taskotron.yaml.example | ||
---|---|---|
58–59 | I have added a longer explanation under the Resources section, so people read the whole config file, they will find it. I'd rather keep the short note alongside every affected item, because it's very easy to overlook this and you don't always read the whole config file. And if you don't know about this issue, it might take you quite some time to figure out. |
I'm not sure this has to be after every entry. I also think that changing the warning to something along the lines of "Trailing slashes at the end of URLs will lead to double slashes when rendered and not all application servers handle that gracefully" would be more precise than "don't do this!" written before every entry.