When we say the Content has not changed we should not respond
with a content type which defaults to binary/octet stream.
Fixes: #15119
Signed-off-by: Wido den Hollander <wido@42on.com>
riter->second.c_str());
}
- if (!content_type)
- content_type = "binary/octet-stream";
+ if (op_ret == ERR_NOT_MODIFIED) {
+ end_header(s, this);
+ } else {
+ if (!content_type)
+ content_type = "binary/octet-stream";
- end_header(s, this, content_type);
+ end_header(s, this, content_type);
+ }
if (metadata_bl.length()) {
STREAM_IO(s)->write(metadata_bl.c_str(), metadata_bl.length());