caddy/caddyhttp/browse
ericdreeves 36d2027493 browse: Use helper functions in staticfiles to redirect (#1497)
* Use helper functions in staticfiles to redirect.

Previously the browse package invoked staticfiles.Redirect when
redirecting clients who requested a directory but with a Request-URI
that did not contain a trailing '/'. staticfiles.Redirect only used a
relative URI. This change defers the decision of how to format the
Location header value to the helper methods in the staticfiles package.

* Update const URLPathCtxKey in browse package.
2017-03-15 10:17:12 -06:00
..
testdata Fix for issue #1287 - don't list hidden files in directory listing (#1290) 2016-12-17 11:30:08 -07:00
browse_test.go browse: Use helper functions in staticfiles to redirect (#1497) 2017-03-15 10:17:12 -06:00
browse.go browse: Use helper functions in staticfiles to redirect (#1497) 2017-03-15 10:17:12 -06:00
setup_test.go Remove the eager check in the browse middleware (#1144) 2016-09-28 12:23:44 -06:00
setup.go browse: Sanitize file names and links in default template 2017-01-23 22:37:46 -07:00