| author | |
| committer | |
| log | ae630b695e1306ae357a900a44732912eac2a417 |
| tree | b22fa1f93646290ec03da97e7381562b40d0f38a |
| parent | f9dff2fcf1d5c6df1d6b935c4eb536793148a9d9 |
for checking if a proxy is connecting to itself1 files changed, 3 insertions(+), 1 deletions(-)
lib/std/http/Client.zig+3-1| ... | ... | @@ -1412,7 +1412,9 @@ pub fn connect( |
| 1412 | 1412 | } orelse return client.connectTcp(host, port, protocol); |
| 1413 | 1413 | |
| 1414 | 1414 | // Prevent proxying through itself. |
| 1415 | if (std.mem.eql(u8, proxy.host, host) and proxy.port == port and proxy.protocol == protocol) { | |
| 1415 | if (std.ascii.eqlIgnoreCase(proxy.host, host) and | |
| 1416 | proxy.port == port and proxy.protocol == protocol) | |
| 1417 | { | |
| 1416 | 1418 | return client.connectTcp(host, port, protocol); |
| 1417 | 1419 | } |
| 1418 | 1420 |