Blame SOURCES/0003-allow-30x-redirections.patch

f57d65
From 9bb040a9ae29e1b5afcb674c74f107114b316818 Mon Sep 17 00:00:00 2001
f57d65
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
f57d65
Date: Thu, 29 Jul 2010 19:25:32 +0200
f57d65
Subject: [PATCH 3/3] allow 30x redirections
f57d65
f57d65
---
f57d65
 lib/curl_transport/curltransaction.c | 4 ++++
f57d65
 1 file changed, 4 insertions(+)
f57d65
f57d65
diff --git a/lib/curl_transport/curltransaction.c b/lib/curl_transport/curltransaction.c
f57d65
index f0aafae..b5392a9 100644
f57d65
--- a/lib/curl_transport/curltransaction.c
f57d65
+++ b/lib/curl_transport/curltransaction.c
f57d65
@@ -671,6 +671,10 @@ setupCurlSession(xmlrpc_env *               const envP,
f57d65
     curl_easy_setopt(curlSessionP, CURLOPT_POST, 1);
f57d65
     curl_easy_setopt(curlSessionP, CURLOPT_URL, transP->serverUrl);
f57d65
 
f57d65
+    curl_easy_setopt(curlSessionP, CURLOPT_FOLLOWLOCATION, 1);
f57d65
+    curl_easy_setopt(curlSessionP, CURLOPT_MAXREDIRS, (long)10);
f57d65
+    curl_easy_setopt(curlSessionP, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
f57d65
+
f57d65
     XMLRPC_MEMBLOCK_APPEND(char, envP, transP->postDataP, "\0", 1);
f57d65
     if (!envP->fault_occurred) {
f57d65
         curl_easy_setopt(curlSessionP, CURLOPT_POSTFIELDS, 
f57d65
-- 
f57d65
2.13.1
f57d65