diff options
author | Shawn Pearce <spearce@spearce.org> | 2012-12-07 12:19:13 -0800 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2012-12-07 12:28:36 -0800 |
commit | 20e3779e10be0109075bcecea15bced8c65e49bc (patch) | |
tree | 688a8ff6520219263af05c9f6f5203a2fce2b847 /org.eclipse.jgit.http.server/src | |
parent | 76830dff4c540eed750d5cd1d7484559a4331d80 (diff) | |
download | jgit-20e3779e10be0109075bcecea15bced8c65e49bc.tar.gz jgit-20e3779e10be0109075bcecea15bced8c65e49bc.zip |
Disable response compression on /git-receive-pack URLs
Compressing the response with gzip causes the stream to delay
flushing until gzip has seen the entire response message, or buffers
fill up and the compressed data has to be sent. This hides the
resolving progress monitor from the client, as well as any other
progress messages the server might be trying to send.
Disable compression in receive, matching what /git-upload-pack has.
Change-Id: Ic8d8abe1f43c3f540d1ee7c43a8947a555307d94
Diffstat (limited to 'org.eclipse.jgit.http.server/src')
-rw-r--r-- | org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java index 3d6c35b0b6..d1c258047b 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java @@ -171,7 +171,7 @@ class ReceivePackServlet extends HttpServlet { return; } - SmartOutputStream out = new SmartOutputStream(req, rsp, true) { + SmartOutputStream out = new SmartOutputStream(req, rsp, false) { @Override public void flush() throws IOException { doFlush(); |