diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-03-29 19:31:54 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-03-29 19:31:59 -0700 |
commit | 3212ce9a263083377fb40778e8f49a86ffea2047 (patch) | |
tree | bddcd30972f904350632fbd59e2f4ee48967a980 | |
parent | a19c5a46445150df320a2ba616c2bebbd171e90c (diff) | |
download | es-public-proxy-3212ce9a263083377fb40778e8f49a86ffea2047.tar.gz es-public-proxy-3212ce9a263083377fb40778e8f49a86ffea2047.zip |
have Via header prefixed with 'HTTP/1.1', not '1.1'
I forgot whether this was the version of the proxy or the HTTP version,
so use the clearer format.
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index d62bb36..761c020 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,7 +45,7 @@ async fn upstream_req( // regardless of the response type (error or upstream response), add HTTP headers resp.headers_mut() - .insert("Via", HeaderValue::from_static("1.1 es-public-proxy")); + .insert("Via", HeaderValue::from_static("HTTP/1.1 es-public-proxy")); if config.enable_cors == Some(true) { resp.headers_mut() .insert("Access-Control-Allow-Origin", HeaderValue::from_static("*")); |