From b58eb73f281ebb9f741fc924afe52cc14f709a3d Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Fri, 24 Jul 2009 09:55:09 +0000 Subject: comment on jchris comment on not sending Content-Length for attachment GETs git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797400 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd_db.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl index 46410ff7..7498a521 100644 --- a/src/couchdb/couch_httpd_db.erl +++ b/src/couchdb/couch_httpd_db.erl @@ -824,7 +824,9 @@ db_attachment_req(#httpd{method='GET'}=Req, Db, DocId, FileNameParts) -> % My understanding of http://www.faqs.org/rfcs/rfc2616.html % says that we should not use Content-Length with a chunked % encoding. Turning this off makes libcurl happy, but I am - % open to discussion. + % open to discussion. (jchris) + % + % Can you point to the section that makes you think that? (jan) % {"Content-Length", integer_to_list(couch_doc:bin_size(Bin))} ]), couch_doc:att_foldl(Att, -- cgit v1.2.3