Commit 90014159 by JustSong

fix: fix http2: invalid Connection request header: ["upgrade"]

parent 67ece62f
......@@ -28,6 +28,8 @@ func Relay(c *gin.Context) {
// Fix HTTP Decompression failed
// https://github.com/stoplightio/prism/issues/1064#issuecomment-824682360
req.Header.Del("Accept-Encoding")
// Fix http2: invalid Connection request header: ["upgrade"]
req.Header.Del("Upgrade")
client := &http.Client{}
resp, err := client.Do(req)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment