From 992c0fb01ba693afd08dbf48eb52593cf58cf05c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 26 Aug 2020 12:50:09 -0700 Subject: set content type header on upstream requests --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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"); -- cgit v1.2.3