Skip to content

Commit

Permalink
refactor sentry_transport_winhttp.c to use opts->proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMoelans committed Oct 30, 2024
1 parent 5ce42fb commit 11bedad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transports/sentry_transport_winhttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ sentry__winhttp_transport_start(
sentry__bgworker_setname(bgworker, opts->transport_thread_name);

// ensure the proxy starts with `http://`, otherwise ignore it
if (opts->http_proxy
&& strstr(opts->http_proxy, "http://") == opts->http_proxy) {
const char *ptr = opts->http_proxy + 7;
if (opts->proxy
&& strstr(opts->proxy, "http://") == opts->proxy) {
const char *ptr = opts->proxy + 7;
const char *slash = strchr(ptr, '/');
if (slash) {
char *copy = sentry__string_clone_n(ptr, slash - ptr);
Expand Down

0 comments on commit 11bedad

Please sign in to comment.