0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddyhttp/templates
crvv 4a095590b1 templates: Set right response Content-Type
If use gzip and templates at the same time, the response body will
be gzipped data. And in this case, the Content-Type header won't be
set by Caddy code. Then Go http package will set "Content-Type" to
wrong value "application/x-gzip" which is determined by response body.
So the header Contenty-Type should be set in templates middleware.
2017-03-07 11:11:52 +08:00
..
testdata Migrate remaining middleware packages 2016-06-05 22:39:23 -06:00
setup.go Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
setup_test.go Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
templates.go templates: Set right response Content-Type 2017-03-07 11:11:52 +08:00
templates_test.go Migrate remaining middleware packages 2016-06-05 22:39:23 -06:00