Add env variable to turn on curl verbose
This commit is contained in:
parent
929a6a2b99
commit
a38875d6dd
|
@ -130,10 +130,16 @@ KICAD_CURL_EASY::KICAD_CURL_EASY() :
|
||||||
curl_easy_setopt( m_CURL, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS );
|
curl_easy_setopt( m_CURL, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// We need this to use the Windows Certificate store
|
// We need this to use the Windows Certificate store
|
||||||
curl_easy_setopt( m_CURL, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA );
|
curl_easy_setopt( m_CURL, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if( wxGetEnv( wxT( "KICAD_CURL_VERBOSE" ), nullptr ) )
|
||||||
|
{
|
||||||
|
// note: curl verbose will end up in stderr
|
||||||
|
curl_easy_setopt( m_CURL, CURLOPT_VERBOSE, 1L );
|
||||||
|
}
|
||||||
|
|
||||||
wxPlatformInfo platformInfo;
|
wxPlatformInfo platformInfo;
|
||||||
wxString application( Pgm().App().GetAppName() );
|
wxString application( Pgm().App().GetAppName() );
|
||||||
|
|
Loading…
Reference in New Issue