You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2010/08/05 23:42:18 UTC

svn commit: r982796 - /subversion/branches/issue-2779-dev/subversion/libsvn_ra_serf/util.c

Author: cmpilato
Date: Thu Aug  5 21:42:18 2010
New Revision: 982796

URL: http://svn.apache.org/viewvc?rev=982796&view=rev
Log:
On the issue-2779-dev branch: Oops!  Revert some not-intended-for-commit
code that was, alas, inadvertently committed in r982780.

* subversion/libsvn_ra_serf/util.c
  (handle_response): Stop catching a bunch of error codes that shouldn't be
    caught here.

Reported by: rhuijben

Modified:
    subversion/branches/issue-2779-dev/subversion/libsvn_ra_serf/util.c

Modified: subversion/branches/issue-2779-dev/subversion/libsvn_ra_serf/util.c
URL: http://svn.apache.org/viewvc/subversion/branches/issue-2779-dev/subversion/libsvn_ra_serf/util.c?rev=982796&r1=982795&r2=982796&view=diff
==============================================================================
--- subversion/branches/issue-2779-dev/subversion/libsvn_ra_serf/util.c (original)
+++ subversion/branches/issue-2779-dev/subversion/libsvn_ra_serf/util.c Thu Aug  5 21:42:18 2010
@@ -1418,22 +1418,13 @@ handle_response(serf_request_t *request,
 
       /* Cases where a lack of a response body (via EOF) is okay:
        *  - A HEAD request
-       *  - responses with the following status codes: 
-       *       204, 301, 302, 304, 307, 401, 407
+       *  - 204/304 response
        *
        * Otherwise, if we get an EOF here, something went really wrong: either
        * the server closed on us early or we're reading too much.  Either way,
        * scream loudly.
        */
-      if (strcmp(ctx->method, "HEAD") != 0 
-          && sl.code != 204
-          && sl.code != 301 
-          && sl.code != 302 
-          && sl.code != 304
-          && sl.code != 307
-          && sl.code != 401
-          && sl.code != 407
-          )
+      if (strcmp(ctx->method, "HEAD") != 0 && sl.code != 204 && sl.code != 304)
         {
           svn_error_t *err =
               svn_error_createf(SVN_ERR_RA_DAV_MALFORMED_DATA,