Browse Source

specify protocol in http inbound

Darien Raymond 6 years ago
parent
commit
39835e8da2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      proxy/http/server.go

+ 4 - 0
proxy/http/server.go

@@ -239,6 +239,10 @@ func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, wri
 		request.Header.Set("User-Agent", "")
 		request.Header.Set("User-Agent", "")
 	}
 	}
 
 
+	ctx = session.ContextWithContent(ctx, &session.Content{
+		Protocol: "http/1.1",
+	})
+
 	link, err := dispatcher.Dispatch(ctx, dest)
 	link, err := dispatcher.Dispatch(ctx, dest)
 	if err != nil {
 	if err != nil {
 		return err
 		return err