/[Apache-SVN]
ViewVC logotype

Revision 891077


Jump to revision: Previous Next
Author: davisp
Date: Wed Dec 16 00:05:35 2009 UTC (14 years, 4 months ago)
Changed paths: 7
Log Message:
Provide Content-MD5 header support for attachments.

Fixes COUCHDB-558.

Thanks to Filipe Manana we now have checks for attachment transfer integrity
using the Content-MD5 header (or trailer). Use of this integrity check is
triggered by specifying a Content-MD5 header in your request with a value that
is a base64 encoded md5. For requests that are using a chunked Transfer-Encoding
it is also possible to use a trailer so that the Content-MD5 doesn't need to be
known before transfer. This works by specifying a header "Trailer:
Content-MD5" and then in the final chunk (the one with a size of zero) you can
specify a Content-MD5 with exactly the same format as in the request headers.

See the ETap test 130-attachments-md5.t for explicit examples of the request
messages.



Changed paths

Path Details
Directorycouchdb/trunk/THANKS modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_db.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_httpd.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_httpd_db.erl modified , text changed
Directorycouchdb/trunk/src/couchdb/couch_util.erl modified , text changed
Directorycouchdb/trunk/src/mochiweb/mochiweb_headers.erl modified , text changed
Directorycouchdb/trunk/test/etap/130-attachments-md5.t added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26