Skip to content

Commit

Permalink
✨ Ignore the Expect http header which has little purpose
Browse files Browse the repository at this point in the history
Moreover, most clients don't respect it and problems ensue.
  • Loading branch information
pieroxy committed Oct 31, 2023
1 parent 3a34c9e commit 6eb5247
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private void addHeaderImpl(String name, String value, AsyncRequestBuilder addTo)
hopByHopHeaders = new HeaderGroup();
String[] headers = new String[] {
"Connection", "Keep-Alive", "Proxy-Authenticate", "Proxy-Authorization",
"TE", "Trailers", "Transfer-Encoding", "Upgrade" };
"TE", "Trailers", "Transfer-Encoding", "Upgrade", "Expect" };
for (String header : headers) {
hopByHopHeaders.addHeader(new BasicHeader(header, null));
}
Expand Down

0 comments on commit 6eb5247

Please sign in to comment.