subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmpil...@apache.org
Subject svn commit: r1390661 - in /subversion/trunk/subversion/libsvn_ra_serf: commit.c update.c
Date Wed, 26 Sep 2012 18:49:21 GMT
Author: cmpilato
Date: Wed Sep 26 18:49:21 2012
New Revision: 1390661

URL: http://svn.apache.org/viewvc?rev=1390661&view=rev
Log:
* subversion/libsvn_ra_serf/commit.c
  (close_file): Use SVN_SVNDIFF_MIME_TYPE #define rather than
    hard-coded string.

* subversion/libsvn_ra_serf/update.c
  (handle_fetch): Use SVN_SVNDIFF_MIME_TYPE #define rather than
    hard-coded string.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/commit.c
    subversion/trunk/subversion/libsvn_ra_serf/update.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/commit.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/commit.c?rev=1390661&r1=1390660&r2=1390661&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/commit.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/commit.c Wed Sep 26 18:49:21 2012
@@ -2113,7 +2113,7 @@ close_file(void *file_baton,
         {
           handler->body_delegate = create_put_body;
           handler->body_delegate_baton = ctx;
-          handler->body_type = "application/vnd.svn-svndiff";
+          handler->body_type = SVN_SVNDIFF_MIME_TYPE;
         }
 
       handler->header_delegate = setup_put_headers;

Modified: subversion/trunk/subversion/libsvn_ra_serf/update.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/update.c?rev=1390661&r1=1390660&r2=1390661&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/update.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/update.c Wed Sep 26 18:49:21 2012
@@ -933,7 +933,7 @@ handle_fetch(serf_request_t *request,
           return error_fetch(request, fetch_ctx, err);
         }
 
-      if (val && svn_cstring_casecmp(val, "application/vnd.svn-svndiff") == 0)
+      if (val && svn_cstring_casecmp(val, SVN_SVNDIFF_MIME_TYPE) == 0)
         {
           fetch_ctx->delta_stream =
               svn_txdelta_parse_svndiff(info->textdelta,



Mime
View raw message