Skip to content

Commit ccff275

Browse files
committed
Working
1 parent d3d1b03 commit ccff275

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/java/io/fusionauth/http/server/io/HTTPInputStream.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import java.util.zip.GZIPInputStream;
2121
import java.util.zip.InflaterInputStream;
2222

23-
import io.fusionauth.http.HTTPValues.ContentEncodings;
2423
import io.fusionauth.http.ContentTooLargeException;
24+
import io.fusionauth.http.HTTPValues.ContentEncodings;
2525
import io.fusionauth.http.io.ChunkedInputStream;
2626
import io.fusionauth.http.io.PushbackInputStream;
2727
import io.fusionauth.http.log.Logger;
@@ -59,12 +59,12 @@ public class HTTPInputStream extends InputStream {
5959

6060
private boolean closed;
6161

62-
private boolean initialized;
63-
6462
private InputStream delegate;
6563

6664
private boolean drained;
6765

66+
private boolean initialized;
67+
6868
public HTTPInputStream(HTTPServerConfiguration configuration, HTTPRequest request, PushbackInputStream pushbackInputStream,
6969
int maximumContentLength) {
7070
this.logger = configuration.getLoggerFactory().getLogger(HTTPInputStream.class);
@@ -175,7 +175,6 @@ public int read(byte[] b, int off, int len) throws IOException {
175175
// int maxLen = len;
176176
// int read = delegate.read(b, off, maxLen);
177177

178-
179178
int reportBytesRead = read;
180179
if (fixedLength && read > 0) {
181180
int extraBytes = (int) (read - bytesRemaining);

src/main/java/io/fusionauth/http/server/io/HTTPOutputStream.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ private void commit(boolean closing) throws IOException {
191191
response.setContentLength(0L);
192192
} else {
193193
// 204 status is specifically "No Content" so we shouldn't write the content-encoding and vary headers if the status is 204
194-
// TODO : Compress by default is on by default. But it looks like we don't actually compress unless you also send in an Accept-Encoding header?
195194
if (compress && !twoOhFour) {
196195
for (String encoding : acceptEncodings) {
197196
if (encoding.equalsIgnoreCase(ContentEncodings.Gzip)) {

0 commit comments

Comments
 (0)