Skip to content

Commit

Permalink
fix: fix http2: invalid Connection request header: ["upgrade"]
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Apr 25, 2023
1 parent 423978b commit 4c0dc50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c0dc50

Please sign in to comment.