Mercurial > hg > orthanc
diff Core/HttpClient.h @ 2104:58a0ee0b4be1
HttpClient::SetRedirectionFollowed
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Oct 2016 15:12:46 +0200 |
parents | bcbc9137a535 |
children | 595cf22b3e7e |
line wrap: on
line diff
--- a/Core/HttpClient.h Thu Oct 13 11:42:30 2016 +0200 +++ b/Core/HttpClient.h Thu Oct 13 15:12:46 2016 +0200 @@ -67,6 +67,7 @@ std::string clientCertificateKeyPassword_; bool pkcs11Enabled_; bool headersToLowerCase_; + bool redirectionFollowed_; void Setup(); @@ -243,6 +244,16 @@ return headersToLowerCase_; } + void SetRedirectionFollowed(bool follow) + { + redirectionFollowed_ = follow; + } + + bool IsRedirectionFollowed() const + { + return redirectionFollowed_; + } + static void GlobalInitialize(); static void GlobalFinalize();