summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy/streaming.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-11-15 17:15:33 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2019-11-15 17:15:33 -0700
commit1228dd7d93b59409fd844400b9c114be267df3a3 (patch)
treefec39d2abcaba8c2a4cdcdcbb17e39a0c8e905da /modules/caddyhttp/reverseproxy/streaming.go
parentaf26a03da1af7cd7d64fc03270961829d0311ed7 (diff)
reverse_proxy: Allow buffering of client requests
This is a bad idea, but some backends apparently require it. See discussion in #176.
Diffstat (limited to 'modules/caddyhttp/reverseproxy/streaming.go')
-rw-r--r--modules/caddyhttp/reverseproxy/streaming.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/streaming.go b/modules/caddyhttp/reverseproxy/streaming.go
index a3b711b..3ab122c 100644
--- a/modules/caddyhttp/reverseproxy/streaming.go
+++ b/modules/caddyhttp/reverseproxy/streaming.go
@@ -110,6 +110,7 @@ func (h Handler) copyResponse(dst io.Writer, src io.Reader, flushInterval time.D
// buf = h.BufferPool.Get()
// defer h.BufferPool.Put(buf)
// }
+ // // we could also see about a pool that returns values like this: make([]byte, 32*1024)
_, err := h.copyBuffer(dst, src, buf)
return err
}