1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00
caddy/modules/caddyhttp/headers
Matthew Holt 9639fe7d28
header: caddyfile: Defer header operations for deletions or manually
See https://caddy.community/t/caddy-server-that-returns-only-ip-address-as-text/6928/6?u=matt

In most cases, we will want to apply header operations immediately,
rather than waiting until the response is written. The exceptions are
generally going to be if we are deleting a header field or if a field is
to be overwritten. We now automatically defer header ops if deleting a
header field, and allow the user to manually enable deferred mode with
the defer subdirective.
2020-02-04 11:05:32 -07:00
..
caddyfile.go header: caddyfile: Defer header operations for deletions or manually 2020-02-04 11:05:32 -07:00
headers.go header: caddyfile: Defer header operations for deletions or manually 2020-02-04 11:05:32 -07:00
headers_test.go Add license 2019-06-30 16:07:58 -06:00