Mercurial > hg > orthanc
comparison OrthancCppClient/HttpClient.cpp @ 456:511efa5c84dd
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jul 2013 15:53:46 +0200 |
parents | e3a40c7846b8 |
children | 997282a61ff8 |
comparison
equal
deleted
inserted
replaced
455:238a0c99ced2 | 456:511efa5c84dd |
---|---|
90 | 90 |
91 #if ORTHANC_SSL_ENABLED == 1 | 91 #if ORTHANC_SSL_ENABLED == 1 |
92 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_SSL_VERIFYPEER, 0)); | 92 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_SSL_VERIFYPEER, 0)); |
93 #endif | 93 #endif |
94 | 94 |
95 // This fixes the "longjmp causes uninitialized stack frame" crash | |
96 // that happens on modern Linux versions. | |
97 // http://stackoverflow.com/questions/9191668/error-longjmp-causes-uninitialized-stack-frame | |
98 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_NOSIGNAL, 1)); | |
99 | |
95 url_ = ""; | 100 url_ = ""; |
96 method_ = Orthanc_HttpMethod_Get; | 101 method_ = Orthanc_HttpMethod_Get; |
97 lastStatus_ = Orthanc_HttpStatus_200_Ok; | 102 lastStatus_ = Orthanc_HttpStatus_200_Ok; |
98 isVerbose_ = false; | 103 isVerbose_ = false; |
99 } | 104 } |