From 3212ce9a263083377fb40778e8f49a86ffea2047 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 29 Mar 2021 19:31:54 -0700 Subject: 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. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("*")); -- cgit v1.2.3