summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_httpd.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index c745fdb8..bdc172a3 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -731,7 +731,7 @@ handle_attachment_request(Req, 'GET', _DbName, Db, DocId, FileName) ->
{Type, Bin} ->
Resp = Req:respond({200, [
{"Cache-Control", "must-revalidate"},
- {"Content-Type", Type},
+ {"Content-Type", binary_to_list(Type)},
{"Content-Length", integer_to_list(couch_doc:bin_size(Bin))}
] ++ server_header(), chunked}),
couch_doc:bin_foldl(Bin,
@@ -756,7 +756,7 @@ handle_attachment_request(Req, Method, _DbName, Db, DocId, FileName)
[];
_ ->
[{FileName, {
- Req:get_header_value("Content-Type"),
+ list_to_binary(Req:get_header_value("Content-Type")),
Req:recv_body()
}}]
end,