Mercurial > hg > orthanc
comparison Core/HttpClient.cpp @ 2107:88831c3edd8f
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Oct 2016 17:22:09 +0200 |
parents | 58a0ee0b4be1 |
children | dd609a99d39a |
comparison
equal
deleted
inserted
replaced
2106:09cb73980740 | 2107:88831c3edd8f |
---|---|
326 | 326 |
327 HttpClient::HttpClient() : | 327 HttpClient::HttpClient() : |
328 pimpl_(new PImpl), | 328 pimpl_(new PImpl), |
329 verifyPeers_(true), | 329 verifyPeers_(true), |
330 pkcs11Enabled_(false), | 330 pkcs11Enabled_(false), |
331 headersToLowerCase_(true) | 331 headersToLowerCase_(true), |
332 redirectionFollowed_(true) | |
332 { | 333 { |
333 Setup(); | 334 Setup(); |
334 } | 335 } |
335 | 336 |
336 | 337 |
337 HttpClient::HttpClient(const WebServiceParameters& service, | 338 HttpClient::HttpClient(const WebServiceParameters& service, |
338 const std::string& uri) : | 339 const std::string& uri) : |
339 pimpl_(new PImpl), | 340 pimpl_(new PImpl), |
340 verifyPeers_(true), | 341 verifyPeers_(true), |
341 headersToLowerCase_(true) | 342 headersToLowerCase_(true), |
343 redirectionFollowed_(true) | |
342 { | 344 { |
343 Setup(); | 345 Setup(); |
344 | 346 |
345 if (service.GetUsername().size() != 0 && | 347 if (service.GetUsername().size() != 0 && |
346 service.GetPassword().size() != 0) | 348 service.GetPassword().size() != 0) |