Skip to content

Conversation

@Pinusar
Copy link
Contributor

@Pinusar Pinusar commented Sep 10, 2025

Small fix regarding quoted charset parameter in content-type header.
Content-type headers like application/json;charset="utf-8" were causing errors.
Changed content-type header parsing to handle both quoted and unquoted values and added a parameterized test for verification.

Fixes #2448

@Pinusar
Copy link
Contributor Author

Pinusar commented Sep 18, 2025

Hi, just checking in to see if there’s any feedback on this PR. Happy to adjust if needed!

@tipsy
Copy link
Member

tipsy commented Sep 21, 2025

Hi @Pinusar, this looks good. Nice test! Will merge it now and release as part of Javalin 7.

@tipsy tipsy merged commit 93c2a54 into javalin:master Sep 21, 2025
9 checks passed
@codecov
Copy link

codecov bot commented Sep 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.31%. Comparing base (5ea96ef) to head (db50230).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2449   +/-   ##
=========================================
  Coverage     86.31%   86.31%           
  Complexity     1339     1339           
=========================================
  Files           148      148           
  Lines          4524     4524           
  Branches        515      515           
=========================================
  Hits           3905     3905           
  Misses          402      402           
  Partials        217      217           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Context.body() throws error if charset parameter is quoted

2 participants