aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-26 12:50:09 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-26 12:50:09 -0700
commit992c0fb01ba693afd08dbf48eb52593cf58cf05c (patch)
tree2dc06ae4056793fc9693f589ba9265a969af1efb /src
parent87f149aaef138f2399d02688d61d0534b5650f8e (diff)
downloades-public-proxy-992c0fb01ba693afd08dbf48eb52593cf58cf05c.tar.gz
es-public-proxy-992c0fb01ba693afd08dbf48eb52593cf58cf05c.zip
set content type header on upstream requests
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f50fbdc..b4c6d6a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -124,6 +124,7 @@ pub async fn filter_request(
let upstream_req = Request::builder()
.uri(upstream_uri)
.method(&parts.method)
+ .header("Content-Type", "application/json; charset=UTF-8")
.body(body)
.expect("constructing upstream request");