mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-01 11:06:30 +03:00
InputEvents improvements and some minor fixes and optimizations.
This commit is contained in:
@@ -187,12 +187,19 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
|
||||
|
||||
// Set the proxy for the request
|
||||
char* http_proxy = getenv( "http_proxy" );
|
||||
std::string httpProxy;
|
||||
if ( !proxy && NULL != http_proxy ) {
|
||||
http.setProxy( URI( http_proxy ) );
|
||||
httpProxy = std::string( http_proxy );
|
||||
} else if ( proxy ) {
|
||||
http.setProxy( URI( proxy.Get() ) );
|
||||
httpProxy = proxy.Get();
|
||||
}
|
||||
|
||||
if ( httpProxy.find( "://" ) == std::string::npos ) {
|
||||
httpProxy = "http://" + httpProxy;
|
||||
}
|
||||
|
||||
http.setProxy( URI( httpProxy ) );
|
||||
|
||||
// Request a compressed response
|
||||
if ( compressed ) {
|
||||
request.setCompressedResponse( true );
|
||||
|
||||
Reference in New Issue
Block a user