Skip to content

Commit

Permalink
enable http-1 protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
legokichi committed May 10, 2022
1 parent 0df121f commit b4cf4e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

(Please put changes here.)
- Fixed regression in `rusoto_core` http protocol support: https://github.com/rusoto/rusoto/issues/1980

## [0.48.0] - 2022-04-24

Expand Down
4 changes: 2 additions & 2 deletions rusoto/core/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ impl HttpClient {
#[cfg(feature = "rustls-webpki")]
let builder = builder.with_webpki_roots();

builder.https_only().enable_http2().build()
builder.https_or_http().enable_http1().enable_http2().build()
};

Ok(Self::from_connector(connector))
Expand All @@ -252,7 +252,7 @@ impl HttpClient {
#[cfg(feature = "rustls-webpki")]
let builder = builder.with_webpki_roots();

builder.https_only().enable_http2().build()
builder.https_or_http().enable_http1().enable_http2().build()
};

Ok(Self::from_connector_with_config(connector, config))
Expand Down

0 comments on commit b4cf4e2

Please sign in to comment.