X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=xmlrpc-c-30x-redirect.patch;fp=xmlrpc-c-30x-redirect.patch;h=a2d44467db78a2e88c2013d81fa0bf3fcfa115a0;hb=91f353187f4ecb82c41507a68c2da571aca67f21;hp=1d3df7a7c27f7ab58e3ee20e937af496de31d9f4;hpb=813189af3e515244533f80dbd4d3dc843ebc9ee2;p=packages%2Fxmlrpc-c.git diff --git a/xmlrpc-c-30x-redirect.patch b/xmlrpc-c-30x-redirect.patch index 1d3df7a..a2d4446 100644 --- a/xmlrpc-c-30x-redirect.patch +++ b/xmlrpc-c-30x-redirect.patch @@ -1,27 +1,27 @@ -From 07f7798d0b6c9b187dd6bfa567be74a224baf1fb Mon Sep 17 00:00:00 2001 +From 255ebf4b1204124123971a3bb27741cccbb51692 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 29 Jul 2010 19:25:32 +0200 -Subject: [PATCH 5/5] allow 30x redirections +Subject: [PATCH 5/8] allow 30x redirections --- lib/curl_transport/curltransaction.c | 4 ++++ - 1 files changed, 4 insertions(+), 0 deletions(-) + 1 file changed, 4 insertions(+) diff --git a/lib/curl_transport/curltransaction.c b/lib/curl_transport/curltransaction.c -index 3c75010..e1cfc64 100644 +index 0f76fc2..6292aee 100644 --- a/lib/curl_transport/curltransaction.c +++ b/lib/curl_transport/curltransaction.c -@@ -495,6 +495,10 @@ setupCurlSession(xmlrpc_env * const envP, +@@ -600,6 +600,10 @@ setupCurlSession(xmlrpc_env * const envP, curl_easy_setopt(curlSessionP, CURLOPT_POST, 1); - curl_easy_setopt(curlSessionP, CURLOPT_URL, curlTransactionP->serverUrl); + curl_easy_setopt(curlSessionP, CURLOPT_URL, transP->serverUrl); + curl_easy_setopt(curlSessionP, CURLOPT_FOLLOWLOCATION, 1); + curl_easy_setopt(curlSessionP, CURLOPT_MAXREDIRS, (long)10); + curl_easy_setopt(curlSessionP, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL); + - XMLRPC_MEMBLOCK_APPEND(char, envP, callXmlP, "\0", 1); + XMLRPC_MEMBLOCK_APPEND(char, envP, transP->postDataP, "\0", 1); if (!envP->fault_occurred) { curl_easy_setopt(curlSessionP, CURLOPT_POSTFIELDS, -- -1.7.1.1 +1.7.10.4