Skip to content

Commit

Permalink
Enable http2 feature for reqwest (#708)
Browse files Browse the repository at this point in the history
Some websites will require `http2` support and we should have that
feature enabled to avoid errors.
  • Loading branch information
Hinton authored Apr 12, 2024
1 parent e0513dc commit 7e1a3cb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/bitwarden-api-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ url = ">=2.3.1, <3"
uuid = { version = ">=1.3.3, <2", features = ["serde"] }
[dependencies.reqwest]
version = ">=0.12, <0.13"
features = ["json", "multipart"]
features = ["http2", "json", "multipart"]
default-features = false

[dev-dependencies]
2 changes: 1 addition & 1 deletion crates/bitwarden-api-identity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ url = ">=2.3.1, <3"
uuid = { version = ">=1.3.3, <2", features = ["serde"] }
[dependencies.reqwest]
version = ">=0.12, <0.13"
features = ["json", "multipart"]
features = ["http2", "json", "multipart"]
default-features = false

[dev-dependencies]
1 change: 1 addition & 0 deletions crates/bitwarden-generators/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ mobile = ["dep:uniffi"] # Mobile-specific features
bitwarden-crypto = { workspace = true }
rand = ">=0.8.5, <0.9"
reqwest = { version = ">=0.12, <0.13", features = [
"http2",
"json",
], default-features = false }
schemars = { version = ">=0.8.9, <0.9", features = ["uuid1", "chrono"] }
Expand Down
1 change: 1 addition & 0 deletions crates/bitwarden/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ hmac = ">=0.12.1, <0.13"
log = ">=0.4.18, <0.5"
rand = ">=0.8.5, <0.9"
reqwest = { version = ">=0.12, <0.13", features = [
"http2",
"json",
], default-features = false }
schemars = { version = ">=0.8.9, <0.9", features = ["uuid1", "chrono"] }
Expand Down
2 changes: 1 addition & 1 deletion support/openapi-template/Cargo.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ reqwest-middleware = "0.2.0"
{{/supportMiddleware}}
[dependencies.reqwest]
version = "^0.11"
features = ["json", "multipart"]
features = ["http2", "json", "multipart"]
default-features = false
{{/supportAsync}}
{{/reqwest}}

0 comments on commit 7e1a3cb

Please sign in to comment.