diff options
author | Christopher Lenz <cmlenz@apache.org> | 2008-05-26 09:06:49 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2008-05-26 09:06:49 +0000 |
commit | 65e850a01858509e0bc519832686aa52d58809b0 (patch) | |
tree | 655a34adcd5716b71f06b128ec9e3615d8b2b416 /src/mochiweb/mochiweb.erl | |
parent | 496e3b2e876b74b3da3007268271c3c667e8fbee (diff) |
Updated MochiWeb in trunk to r76. Closes COUCHDB-42.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660136 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/mochiweb/mochiweb.erl')
-rw-r--r-- | src/mochiweb/mochiweb.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mochiweb/mochiweb.erl b/src/mochiweb/mochiweb.erl index be30fccf..0f4d52a6 100644 --- a/src/mochiweb/mochiweb.erl +++ b/src/mochiweb/mochiweb.erl @@ -77,6 +77,14 @@ new_request({Socket, {Method, {absoluteURI, _Protocol, _Host, _Port, Uri}, Method, Uri, Version, + mochiweb_headers:make(Headers)); +%% Request-URI is "*" +%% From http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2 +new_request({Socket, {Method, '*'=Uri, Version}, Headers}) -> + mochiweb_request:new(Socket, + Method, + Uri, + Version, mochiweb_headers:make(Headers)). %% @spec new_response({Request, integer(), Headers}) -> MochiWebResponse |