couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Chesneau (JIRA)" <>
Subject [jira] Updated: (COUCHDB-595) Expect/Continue support broken for non-chunked transfer uploads
Date Fri, 18 Dec 2009 21:34:18 GMT


Benoit Chesneau updated COUCHDB-595:

    Attachment: couchdb_att_100_continue2.patch

chunked send use stream_body which already send the Expect header. This patch send expect
header only for non chunked solution.

Maybe we should use MochiReq:recv_body(MaxLen) so we don't need to add this code here. Is
there any reason actually why we use recv ?

> Expect/Continue support broken for non-chunked transfer uploads
> ---------------------------------------------------------------
>                 Key: COUCHDB-595
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>            Reporter: Robert Newson
>         Attachments: couchdb_att_100_continue.patch, couchdb_att_100_continue2.patch
> CouchDB does not send the "HTTP/1.1 100 CONTINUE\r\n" line in response to a request with
header "Expect: 100-continue". It does do so for chunked transfer mode, so correct expect/continue
behavior can be achieved by forcing chunked mode, even when the exact length of the body is
> mochiweb_request.erl's recv/1 method does not send the header, but stream_body/4 does.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message