From df29ecceed5c63487fe7a2adcdcb7fd38b653cdb Mon Sep 17 00:00:00 2001 From: Rahul Anand Date: Tue, 31 May 2022 16:13:19 +0530 Subject: [PATCH 1/2] use h2 fork that allows requests with pipe chars --- Cargo.lock | 3 +-- Cargo.toml | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ffdf2bc1..20ea4a71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -831,8 +831,7 @@ dependencies = [ [[package]] name = "h2" version = "0.3.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9f1f717ddc7b2ba36df7e871fd88db79326551d3d6f1fc406fbfd28b582ff8e" +source = "git+https://github.com/rahulanand16nov/h2?branch=v0.3.11-pipe#d956cec4ac9dc1ee94aac416f5d338d5b296f902" dependencies = [ "bytes", "fnv", diff --git a/Cargo.toml b/Cargo.toml index 76a17173..38d01988 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,3 +5,6 @@ members = ["limitador", "limitador-server"] [profile.release] lto = true codegen-units = 1 + +[patch.crates-io] +h2 = { git = "https://github.com/rahulanand16nov/h2", branch = "v0.3.11-pipe" } \ No newline at end of file From 9ef2bff2a5acc50058d3aaf065e20d50a8c808f7 Mon Sep 17 00:00:00 2001 From: Rahul Anand Date: Tue, 31 May 2022 16:53:11 +0530 Subject: [PATCH 2/2] add comment for more context --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 38d01988..3dfd93c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,4 +7,4 @@ lto = true codegen-units = 1 [patch.crates-io] -h2 = { git = "https://github.com/rahulanand16nov/h2", branch = "v0.3.11-pipe" } \ No newline at end of file +h2 = { git = "https://github.com/rahulanand16nov/h2", branch = "v0.3.11-pipe" } # This patch can be removed once hyperium/h2#619 is closed. \ No newline at end of file