Mercurial Hosting > luan
diff src/goodjava/webserver/ChunkedOutputStream.java @ 2010:f45ed55f5c11 default tip
fix chunked encoding
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 02 Sep 2025 06:00:41 -0600 |
parents | bba3e529e346 |
children |
line wrap: on
line diff
--- a/src/goodjava/webserver/ChunkedOutputStream.java Mon Sep 01 05:15:44 2025 -0600 +++ b/src/goodjava/webserver/ChunkedOutputStream.java Tue Sep 02 06:00:41 2025 -0600 @@ -19,6 +19,7 @@ if(response==null) throw new NullPointerException(); this.response = response; response.headers.put("Transfer-Encoding","chunked"); + response.headers.put("X-Accel-Buffering","no"); response.body = new ChunkedInputStream(); }