Project

General

Profile

Actions

Bug #14005

closed

RGW shouldn't send Content-Type nor Content-Length for 304 responses

Added by Sylvain Munaut over 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
High
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Currently if you get a 304 response (using If-None-Match in the request for instance), then you get in the response :

Content-Type: binary/octet-stream (no matter what the actual content-type of the object is)
Content-Length: 0

Those two headers shouldn't be there ... it actually breaks Safari that will refuse to play video because of this ...


Related issues 2 (0 open2 closed)

Has duplicate rgw - Bug #15119: Civetweb responds with Content-Type with a 304 Not Modified responseDuplicate03/14/2016

Actions
Copied to rgw - Backport #15283: hammer: RGW shouldn't send Content-Type nor Content-Length for 304 responsesResolvedWei-Chung ChengActions
Actions

Also available in: Atom PDF