Chris McDonough
2011-04-18 29a850643aea9452c4f09906505812cb03d7ef5c
refs
author Chris McDonough <chrism@plope.com>
Monday, April 18, 2011 06:52 +0200
committer Chris McDonough <chrism@plope.com>
Monday, April 18, 2011 06:52 +0200
commit29a850643aea9452c4f09906505812cb03d7ef5c
tree 74699691b2c21c6e19b58bd0cf4280dc37079596 tree | zip | gz
parent 015296cc9c764f63c7b41427ec2538b5e0f861e0 view | diff
- When visiting a URL that represented a static view which resolved to a
subdirectory, the ``index.html`` of that subdirectory would not be served
properly. Instead, a redirect to ``/subdir`` would be issued. This has
been fixed, and now visiting a subdirectory that contains an ``index.html``
within a static view returns the index.html properly. See also
https://github.com/Pylons/pyramid/issues/67.

- Redirects issued by a static view did not take into account any existing
``SCRIPT_NAME`` (such as one set by a url mapping composite). Now they do.

Closes #67.
4 files modified
168 ■■■■■ changed files
CHANGES.txt 10 ●●●●● diff | view | raw | blame | history
pyramid/static.py 52 ●●●● diff | view | raw | blame | history
pyramid/tests/test_integration.py 59 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_static.py 47 ●●●●● diff | view | raw | blame | history