Skip to content

Commit

Permalink
Added exception for proxy detection error
Browse files Browse the repository at this point in the history
  • Loading branch information
Borf committed Aug 12, 2024
1 parent ee551f1 commit bddb255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Patcher/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void detect_proxy(session &http_session, const url &dest_url)
}
catch (error &e)
{
if (e.get_error_code() != ERROR_WINHTTP_AUTODETECTION_FAILED)
if (e.get_error_code() != ERROR_WINHTTP_AUTODETECTION_FAILED && e.get_error_code() != ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT)
{
auto str = e.format_message(e.get_error_code());
LOG(str);
Expand Down

0 comments on commit bddb255

Please sign in to comment.