Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HTTP/1.1 unless HTTPS scheme is in URL #32

Merged
merged 2 commits into from Oct 1, 2020

Conversation

anderseknert
Copy link
Contributor

Default HTTP2 configuration adds three extra headers for version upgrade on each request. These are redundant if the server is configured for HTTP.

Before:

GET / HTTP/1.1
Connection: Upgrade, HTTP2-Settings
Content-Length: 0
Host: localhost:8181
HTTP2-Settings: AAEAAEAAAAIAAAABAAMAAABkAAQBAAAAAAUAAEAA
Upgrade: h2c
User-Agent: Java-http-client/11.0.5

After:

GET / HTTP/1.1
Content-Length: 0
Host: localhost:8181
User-Agent: Java-http-client/11.0.5

Default HTTP2 configuration adds three extra headers for version upgrade on each request. These are redundant if the server is configured for HTTP.

Before:
```
GET / HTTP/1.1
Connection: Upgrade, HTTP2-Settings
Content-Length: 0
Host: localhost:8181
HTTP2-Settings: AAEAAEAAAAIAAAABAAMAAABkAAQBAAAAAAUAAEAA
Upgrade: h2c
User-Agent: Java-http-client/11.0.5
```

After:
```
GET / HTTP/1.1
Content-Length: 0
Host: localhost:8181
User-Agent: Java-http-client/11.0.5
```
@lukasz-kaminski lukasz-kaminski merged commit e3c0d73 into master Oct 1, 2020
@irodzik irodzik deleted the Prefer-HTTP/1.1-for-non-https branch September 25, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants