omnigraph/crates/omnigraph-server
Ragnor Comerford e14b203208
Reuse X_REQUEST_ID constant for inbound header lookup
Both Cursor Bugbot and Cubic flagged that the inbound `headers().get(...)`
call constructed `HeaderName::from_static("x-request-id")` inline instead
of reusing the `X_REQUEST_ID` constant defined at the top of the file.
The two were already kept in sync by both being `from_static("x-request-id")`,
but a future rename would have to touch both sites or risk silent drift
between read and write.

Also drops the now-unused `header` module import.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 12:05:19 +02:00
..
src Reuse X_REQUEST_ID constant for inbound header lookup 2026-04-26 12:05:19 +02:00
tests Add X-Request-Id middleware 2026-04-25 22:56:17 +02:00
Cargo.toml Add X-Request-Id middleware 2026-04-25 22:56:17 +02:00