Skip to content

Commit

Permalink
Update for fly request ID header
Browse files Browse the repository at this point in the history
  • Loading branch information
lstoll committed Mar 10, 2024
1 parent 8e18c53 commit 402c63d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ func baseMiddleware(wrapped http.Handler, wnsessmgr *cookiesession.Manager[webSe
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
st := time.Now()

// TODO - determine if we're in a place to trust this
rid := r.Header.Get("X-Request-Id") // lambda
rid := r.Header.Get("Fly-Request-ID")
if rid == "" {
rid = uuid.NewString()
}
Expand Down

0 comments on commit 402c63d

Please sign in to comment.