Skip to content

Commit

Permalink
ignore the query
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Sep 2, 2024
1 parent 619aac8 commit 100032a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ func (c *CRProxy) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
r.URL.Host = info.Host
r.URL.Scheme = c.getScheme(info.Host)
r.URL.Path = path
r.URL.RawQuery = ""
r.URL.ForceQuery = false

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

0 comments on commit 100032a

Please sign in to comment.