Skip to content

fix: do not overwrite with empty file if the server returns HTTP 304 when If-None-Match is sent#84

Merged
suricactus merged 1 commit intomasterfrom
QF-6453-handler-304
Aug 5, 2025
Merged

fix: do not overwrite with empty file if the server returns HTTP 304 when If-None-Match is sent#84
suricactus merged 1 commit intomasterfrom
QF-6453-handler-304

Conversation

@suricactus
Copy link
Collaborator

When If-None-Match is sent, the server may return HTTP 304 Not Modified with empty response body.

This is problematic, as our code was assuming that there is always a file returned by the server if the HTTP status code < 400

…when `If-None-Match` is sent

When `If-None-Match` is sent, the server may return HTTP 304 Not Modified
with empty response body.

This is problematic, as our code was assuming that there is always a file returned by the server if the HTTP status code < 400
@duke-nyuki
Copy link
Collaborator

@suricactus suricactus merged commit 66cde2d into master Aug 5, 2025
8 checks passed
@suricactus suricactus deleted the QF-6453-handler-304 branch August 5, 2025 13:38
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