Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Fixed HTTP 500 error when given incorrect Range header #19834

Merged
merged 1 commit into from Mar 11, 2024

Conversation

daniellockyer
Copy link
Member

ref ENG-729
ref https://linear.app/tryghost/issue/ENG-729/incorrect-range-header-leads-to-http-500-errors

  • we didn't have handling here for the RangeNotSatisfiableError that can come from express/serve-static/send
  • as a result, passing an invalid range would cause a 500 error
  • this prevents that and adds a breaking test

ref ENG-729
ref https://linear.app/tryghost/issue/ENG-729/incorrect-range-header-leads-to-http-500-errors

- we didn't have handling here for the `RangeNotSatisfiableError` that
  can come from express/serve-static/send
- as a result, passing an invalid range would cause a 500 error
- this prevents that and adds a breaking test
@daniellockyer daniellockyer marked this pull request as ready for review March 11, 2024 18:06
@daniellockyer daniellockyer enabled auto-merge (rebase) March 11, 2024 18:12
@daniellockyer daniellockyer merged commit 360ecf1 into main Mar 11, 2024
20 checks passed
@daniellockyer daniellockyer deleted the range-errors branch March 11, 2024 18:14
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.

None yet

1 participant