Skip to content

Commit

Permalink
Fix error message in via_modifier. (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
darist authored and bramhaghosh committed Sep 25, 2018
1 parent c223d6f commit f6bca0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion header/via_modifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (m *ViaModifier) ModifyRequest(req *http.Request) error {

if v := req.Header.Get("Via"); v != "" {
if m.hasLoop(v) {
err := fmt.Errorf("via: detected request loop, header contains %s", m.requestedBy)
err := fmt.Errorf("via: detected request loop, header contains %s", via)

ctx := martian.NewContext(req)
ctx.Set(viaLoopKey, err)
Expand Down

0 comments on commit f6bca0c

Please sign in to comment.