caddy/modules/caddyhttp
Matthew Holt 613d544a47 reverseproxy: Accept EOF when buffering
Before this change, a read of size (let's say) < 10, into a buffer of size 10, will return EOF because we're using CopyN to limit to the size of the buffer. That resulted in the body being read from later, which should only happen if it couldn't fit in the buffer.

With this change, the body is properly NOT set when it can all fit in the buffer.
2024-04-22 13:12:10 -06:00
..
caddyauth caddyauth: Drop support for scrypt (#6091) 2024-02-12 19:33:54 +00:00
encode fileserver: Improve Vary handling (#5849) 2024-04-19 13:43:13 -06:00
fileserver fileserver: Improve Vary handling (#5849) 2024-04-19 13:43:13 -06:00
headers caddyhttp: Allow header replacement with empty string (#6163) 2024-03-21 17:29:32 +00:00
logging logging: Implement log_append handler (#6066) 2024-03-05 17:03:59 -07:00
map caddyfile: Normalize & flatten all unmarshalers (#6037) 2024-01-23 19:36:59 -05:00
proxyprotocol caddyfile: Normalize & flatten all unmarshalers (#6037) 2024-01-23 19:36:59 -05:00
push caddyhttp: Allow header replacement with empty string (#6163) 2024-03-21 17:29:32 +00:00
requestbody caddyfile: Normalize & flatten all unmarshalers (#6037) 2024-01-23 19:36:59 -05:00
reverseproxy reverseproxy: Accept EOF when buffering 2024-04-22 13:12:10 -06:00
rewrite Added a null check to avoid segfault on rewrite query ops (#6191) 2024-03-23 01:51:34 -04:00
standard logging: Implement log_append handler (#6066) 2024-03-05 17:03:59 -07:00
templates chore: remove repetitive word (#6193) 2024-03-25 09:05:45 -06:00
tracing caddyfile: Normalize & flatten all unmarshalers (#6037) 2024-01-23 19:36:59 -05:00
app.go logging: Fix default access logger (#6251) 2024-04-22 06:33:07 -06:00
autohttps.go caddytls: Upgrade ACMEz to v2; support ZeroSSL API; various fixes (#6229) 2024-04-13 21:31:43 -04:00
caddyhttp.go ci: Use gofumpt to format code (#5707) 2023-08-07 19:40:31 +00:00
caddyhttp_test.go caddyhttp: Test cases for %2F and %252F (#6084) 2024-02-07 05:13:17 -05:00
celmatcher.go caddyfile: Populate regexp matcher names by default (#6145) 2024-04-17 12:19:14 -06:00
celmatcher_test.go caddyfile: Populate regexp matcher names by default (#6145) 2024-04-17 12:19:14 -06:00
errors.go caddyhttp: Preserve original error (fix #5652) 2023-07-25 09:41:56 -06:00
http2listener.go caddyhttp: Serve http2 when listener wrapper doesn't return *tls.Conn (#4929) 2023-04-10 17:05:02 +00:00
httpredirectlistener.go httpredirectlistener: Only set read limit for when request is HTTP (#5917) 2023-11-20 12:31:36 +00:00
invoke.go caddyhttp: Implement named routes, invoke directive (#5107) 2023-05-16 15:27:52 +00:00
ip_matchers.go matchers: Drop forwarded option from remote_ip matcher (#6085) 2024-02-07 10:09:29 -05:00
ip_range.go caddyhttp: Pluggable trusted proxy IP range sources (#5328) 2023-02-06 12:44:11 -07:00
logging.go logging: Fix default access logger (#6251) 2024-04-22 06:33:07 -06:00
marshalers.go caddyhttp: Replace sensitive headers with REDACTED (close #5669) 2024-03-29 14:42:20 -06:00
matchers.go caddyfile: Populate regexp matcher names by default (#6145) 2024-04-17 12:19:14 -06:00
matchers_test.go matchers: query now ANDs multiple keys (#6054) 2024-01-22 02:36:44 +00:00
metrics.go metrics: Record request metrics on HTTP errors (#5979) 2023-12-15 20:14:00 +00:00
metrics_test.go metrics: Record request metrics on HTTP errors (#5979) 2023-12-15 20:14:00 +00:00
replacer.go caddyhttp: add http.request.local{,.host,.port} placeholder (#6182) 2024-03-27 21:36:53 +00:00
replacer_test.go caddyhttp: add http.request.local{,.host,.port} placeholder (#6182) 2024-03-27 21:36:53 +00:00
responsematchers.go caddyfile: Normalize & flatten all unmarshalers (#6037) 2024-01-23 19:36:59 -05:00
responsematchers_test.go reverseproxy: Add handle_response blocks to reverse_proxy (#3710) (#4021) 2021-05-02 12:39:06 -06:00
responsewriter.go caddyhttp: record num. bytes read when response writer is hijacked (#6173) 2024-04-17 15:00:37 +00:00
responsewriter_test.go caddyhttp: Impl ResponseWriter.Unwrap(), prep for Go 1.20's ResponseController (#5509) 2023-04-26 19:44:01 -04:00
routes.go caddyfile: Populate regexp matcher names by default (#6145) 2024-04-17 12:19:14 -06:00
server.go logging: Fix default access logger (#6251) 2024-04-22 06:33:07 -06:00
server_test.go caddyhttp: Accept XFF header values with ports, when parsing client IP (#6183) 2024-03-21 10:54:25 -06:00
staticerror.go caddyfile: Normalize & flatten all unmarshalers (#6037) 2024-01-23 19:36:59 -05:00
staticresp.go staticresp: Use the evaluated response body for sniffing JSON content-type (#6249) 2024-04-18 20:31:00 +00:00
staticresp_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
subroute.go reverseproxy: Enable changing only the status code (close #2920) 2020-06-04 12:06:38 -06:00
vars.go caddyfile: Populate regexp matcher names by default (#6145) 2024-04-17 12:19:14 -06:00