# HG changeset patch # User cboesch # Date 1290111524 0 # Node ID e21aa887e9dfdf0ea110a978c066d6861879c104 # Parent 25de211794e8fc0327c2602eb1d1c051ed85b912 "Authentication" header is for the destination server URL, even through a proxy diff -r 25de211794e8 -r e21aa887e9df stream/network.c --- a/stream/network.c Wed Nov 17 21:14:55 2010 +0000 +++ b/stream/network.c Thu Nov 18 20:18:44 2010 +0000 @@ -254,7 +254,7 @@ if (network_cookies_enabled) cookies_set( http_hdr, server_url->hostname, server_url->url ); http_set_field( http_hdr, "Connection: close"); - http_add_basic_authentication( http_hdr, url->username, url->password ); + http_add_basic_authentication(http_hdr, server_url->username, server_url->password); if( http_build_request( http_hdr )==NULL ) { goto err_out; }