Skip to content

Commit 525db98

Browse files
authored
Merge pull request square#3613 from yschimke/hardcoded
Hardcode header limit to 256 KiB
2 parents 3fe86b3 + dffec3e commit 525db98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

okhttp/src/main/java/okhttp3/internal/http1/Http1Codec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public final class Http1Codec implements HttpCodec {
7474
private static final int STATE_OPEN_RESPONSE_BODY = 4;
7575
private static final int STATE_READING_RESPONSE_BODY = 5;
7676
private static final int STATE_CLOSED = 6;
77-
private static final int HEADER_LIMIT = Integer.getInteger("okhttp.headerlimit", 256 * 1024);
77+
private static final int HEADER_LIMIT = 256 * 1024;
7878

7979
/** The client that configures this stream. May be null for HTTPS proxy tunnels. */
8080
final OkHttpClient client;

0 commit comments

Comments
 (0)