summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/general/urls.rst
diff options
context:
space:
mode:
authorDaniel Hunsaker <danhunsaker@gmail.com>2012-12-31 17:22:07 +0100
committerDaniel Hunsaker <danhunsaker@gmail.com>2012-12-31 17:22:07 +0100
commitc82b57b32c0398bd36d625b9e5f9c20f54b768d2 (patch)
tree996e31ec71c0c3f9be4c9c4b06019621a8d27ebc /user_guide_src/source/general/urls.rst
parent88257ce618483e4477cbfed0e2f0b4c429533e09 (diff)
Fixed normalization of headers under Apache
The existing header normalization routine converts headers provided by Apache (that is, with `-` in the name instead of `_`) to all lowercase, with the exception of the first character. This is different from the expected result, wherein each word of the header is capitalized. For example, `CONTENT-LENGTH` would normalize to `Content-length` instead of the expected `Content-Length`. The reason for this is that the existing code is only converting underscores to spaces, and leaving hyphens untouched. The fix is to replace hyphens with spaces as well before passing the result through `ucwords()`. That fix is included here. Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
Diffstat (limited to 'user_guide_src/source/general/urls.rst')
0 files changed, 0 insertions, 0 deletions