diff options
author | Damien F. Katz <damien@apache.org> | 2010-06-03 03:56:44 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2010-06-03 03:56:44 +0000 |
commit | 50e4e3bfccb863e7a4a61306b2121828509ed261 (patch) | |
tree | 8ff168d9371ec6e4b9f5789c69ae6573023bf50c /src/couchdb/couch_httpd.erl | |
parent | 9807cda46b01f31bc77025c34a8b7f4275be6563 (diff) |
More work to allow for streaming attachment replication.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950865 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd.erl')
-rw-r--r-- | src/couchdb/couch_httpd.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index d9e91e4b..7f6232e9 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -772,13 +772,15 @@ parse_multipart_request(ContentType, DataFun, Callback) -> nil_callback(_Data)-> fun(Next) -> nil_callback(Next) end. -get_boundary(ContentType) -> - {"multipart/" ++ _, Opts} = mochiweb_util:parse_header(ContentType), +get_boundary({"multipart/" ++ _, Opts}) -> case couch_util:get_value("boundary", Opts) of S when is_list(S) -> S - end. - + end; +get_boundary(ContentType) -> + {"multipart/" ++ _ , Opts} = mochiweb_util:parse_header(ContentType), + get_boundary({"multipart/", Opts}). + split_header(<<>>) -> |