Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(v8/node/nestjs): Use method on current fastify request#15104

Merged
chargome merged 2 commits intov8getsentry/sentry-javascript:v8from
cg/v8-backport-fastify-request-method-fixgetsentry/sentry-javascript:cg/v8-backport-fastify-request-method-fixCopy head branch name to clipboard
Jan 21, 2025
Merged

fix(v8/node/nestjs): Use method on current fastify request#15104
chargome merged 2 commits intov8getsentry/sentry-javascript:v8from
cg/v8-backport-fastify-request-method-fixgetsentry/sentry-javascript:cg/v8-backport-fastify-request-method-fixCopy head branch name to clipboard

Conversation

@chargome
Copy link
Member

Backports #15066

The previous code was using fastify `request.routeOptions.method` which
is all methods the current route supports - not the current request
method.
Ex. `@All()` nestjs decorator `request.routeOptions.method = ['GET',
'POST', 'HEAD', ...]`

- Added a test for `@All()`
- Updated instances of fastify request to use `request.method` which
matches express

---------

Co-authored-by: Charly Gomez <charly.gomez@sentry.io>
@chargome chargome self-assigned this Jan 21, 2025
@chargome chargome requested a review from mydea January 21, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.