You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by cm...@apache.org on 2008/04/07 11:24:52 UTC

svn commit: r645425 - /incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl

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,