Skip to content

fix: support all content types in local server endpoints#153

Merged
zivl merged 2 commits intozivl:masterfrom
rchl:fix/parse-all
Jan 2, 2023
Merged

fix: support all content types in local server endpoints#153
zivl merged 2 commits intozivl:masterfrom
rchl:fix/parse-all

Conversation

@rchl
Copy link
Copy Markdown
Contributor

@rchl rchl commented Dec 19, 2022

This PR is based on #152 so should be handled after the other one. The diff will become much smaller then.

This change removes all content-type restrictions for the bodyParser middleware. The reason for that is that I found a case that is not properly handled. For Node-side events whose size is over the threshold Sentry will send those gzip-compressed but without content-type. That meant that those were not processed by bodyParser and we entered the block that does manual body processing but that failed due to not handling gziped content.

To solve that, removed custom body parsing code and enabled bodyParser for all content types.

@rchl rchl changed the title fix: local server not capturing error events from the browser fix: support all content types in local server endpoints Dec 19, 2022
Copy link
Copy Markdown
Owner

@zivl zivl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!!
thank you for your effort @rchl

@zivl zivl merged commit 063a538 into zivl:master Jan 2, 2023
@rchl rchl deleted the fix/parse-all branch January 2, 2023 09:39
@rchl rchl restored the fix/parse-all branch January 2, 2023 09:40
zivl added a commit that referenced this pull request Jan 3, 2023
zivl added a commit that referenced this pull request Jan 3, 2023
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.

2 participants