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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assets: Fix range request status code #633

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

jpelkonen
Copy link
Contributor

Should return partial content (206) rather than (200) RFC 9110, section 14.2: "the server SHOULD send a 206 (Partial Content) response with content containing one or more partial representations"

This commit addresses issue #631

Should return partial content (206) rather than (200)
RFC 9110, section 14.2: "the server SHOULD send a 206 (Partial Content)
response with content containing one or more partial representations"

Signed-off-by: Janne Pelkonen <jpelkonen@ideanovatech.com>
@msrd0 msrd0 linked an issue Oct 25, 2023 that may be closed by this pull request
Copy link
Member

@msrd0 msrd0 left a comment

Choose a reason for hiding this comment

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

Thanks

@msrd0 msrd0 enabled auto-merge (squash) October 25, 2023 16:42
@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #633 (cc246e2) into main (7ea4025) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #633   +/-   ##
=======================================
  Coverage   78.73%   78.73%           
=======================================
  Files          72       72           
  Lines        2088     2088           
=======================================
  Hits         1644     1644           
  Misses        444      444           
Files Coverage Δ
gotham/src/handler/assets/mod.rs 93.01% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@msrd0 msrd0 merged commit 446279d into gotham-rs:main Oct 25, 2023
11 checks passed
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.

Range request response status code should be 206 rathen than 200
2 participants