Skip to content

Commit

Permalink
Remove X-Github-Delivery from request id. (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
nishkrishnan authored Apr 1, 2022
1 parent 3b96c98 commit d9615eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/controllers/events/events_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (e *VCSEventsController) handleGithubPost(w http.ResponseWriter, r *http.Re
return
}

githubReqID := "X-Github-Delivery=" + r.Header.Get("X-Github-Delivery")
githubReqID := r.Header.Get("X-Github-Delivery")
logger := e.Logger.With("gh-request-id", githubReqID)
scope := e.Scope.SubScope("github.event")

Expand Down
2 changes: 1 addition & 1 deletion server/lyft/gateway/events_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (g *VCSEventsController) handleGithubPost(w http.ResponseWriter, r *http.Re
return
}
event, _ := github.ParseWebHook(github.WebHookType(r), payload)
githubReqID := "X-Github-Delivery=" + r.Header.Get("X-Github-Delivery")
githubReqID := r.Header.Get("X-Github-Delivery")
logger := g.Logger.With("gh-request-id", githubReqID)
scope := g.Scope.SubScope("github.event")

Expand Down

0 comments on commit d9615eb

Please sign in to comment.