Skip to content

Commit

Permalink
fix: missing header when copying request
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxu19830126 committed Feb 1, 2019
1 parent 8542596 commit ef7d8c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ func (p *Proxy) ServeFastHTTP(ctx *fasthttp.RequestCtx) {
return
}

// make sure fasthttp request header is parsed, avoid concurrent copy header bug
ctx.Request.Header.Peek("fuck")

log.Infof("%s: match api %s, has %d dispatches",
requestTag,
api.meta.Name,
Expand Down

0 comments on commit ef7d8c0

Please sign in to comment.