diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-08-26 12:50:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-08-26 12:50:09 -0700 |
commit | 992c0fb01ba693afd08dbf48eb52593cf58cf05c (patch) | |
tree | 2dc06ae4056793fc9693f589ba9265a969af1efb /src | |
parent | 87f149aaef138f2399d02688d61d0534b5650f8e (diff) | |
download | es-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.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); |