소스 검색

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
tags/v2.3.0.201302130906
Shawn Pearce 11 년 전
부모
커밋
20e3779e10
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java

+ 1
- 1
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java 파일 보기

return; return;
} }


SmartOutputStream out = new SmartOutputStream(req, rsp, true) {
SmartOutputStream out = new SmartOutputStream(req, rsp, false) {
@Override @Override
public void flush() throws IOException { public void flush() throws IOException {
doFlush(); doFlush();

Loading…
취소
저장