You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcmis/0001-rhbz-1410197-limit-the...

26 lines
884 B

From 3637a6bbf0a3daf8c11d4290ea47523e3ebeb496 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Mon, 27 Feb 2017 19:33:45 +0100
Subject: [PATCH] rhbz#1410197 limit the number of redirections
---
src/libcmis/http-session.cxx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libcmis/http-session.cxx b/src/libcmis/http-session.cxx
index 943ed5b..5c2f5e9 100644
--- a/src/libcmis/http-session.cxx
+++ b/src/libcmis/http-session.cxx
@@ -396,6 +396,8 @@ libcmis::HttpResponsePtr HttpSession::httpPostRequest( const string& url, istrea
curl_easy_setopt( m_curlHandle, CURLOPT_HEADERFUNCTION, &lcl_getHeaders );
curl_easy_setopt( m_curlHandle, CURLOPT_WRITEHEADER, response.get() );
+ curl_easy_setopt( m_curlHandle, CURLOPT_MAXREDIRS, 20);
+
// Get the stream length
is.seekg( 0, ios::end );
long size = is.tellg( );
--
2.9.3