Skip to content

Commit

Permalink
Fix redirection failure when forwarding http2 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiMeow authored Oct 24, 2024
1 parent 1a9a9db commit adb25df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ func (c *CRProxy) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
r.URL.Path = path
r.URL.RawQuery = ""
r.URL.ForceQuery = false

r.Body = http.NoBody
if info.Blobs != "" && c.isRedirectToOriginBlob(r, imageInfo) {
c.redirectBlobResponse(rw, r, info)
return
Expand Down

0 comments on commit adb25df

Please sign in to comment.