couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r645425 - /incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl
Date Mon, 07 Apr 2008 09:24:52 GMT
Author: cmlenz
Date: Mon Apr  7 02:24:51 2008
New Revision: 645425

URL: http://svn.apache.org/viewvc?rev=645425&view=rev
Log:
mochiweb branch: remove redundant code in etag check.

Modified:
    incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl

Modified: incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl?rev=645425&r1=645424&r2=645425&view=diff
==============================================================================
--- incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl (original)
+++ incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl Mon Apr  7 02:24:51 2008
@@ -474,9 +474,9 @@
     {_, undefined} ->
         [DocRev];
     {undefined, _} ->
-        [string:strip(Etag, both, $")];
+        Etag;
     _ when DocRev == Etag ->
-        [string:strip(Etag, both, $")];
+        Etag;
     _ ->
         throw({bad_request, "Document rev and etag have different values"})
     end,



Mime
View raw message