Host header same as CONNECT arg.

This commit is contained in:
Denis Chancogne 2026-02-02 01:02:13 +01:00 committed by Denis Chancogne
parent b66f2fa205
commit 3ccb37473a

2
http.c
View file

@ -108,7 +108,7 @@ void proxy_protocol(PTSTREAM *pts) {
} else {
if( args_info.verbose_flag )
message( "\nTunneling to %s (destination)\n", args_info.dest_arg );
sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s\r\n", args_info.dest_arg, args_info.host_arg ? args_info.host_arg : args_info.proxyhost_arg );
sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s\r\n", args_info.dest_arg, args_info.host_arg ? args_info.host_arg : args_info.dest_arg );
}
if ( args_info.user_given && args_info.pass_given ) {