Branch: Tag:

2001-04-02

2001-04-02 18:00:01 by Johan Sundström <oyasumi@gmail.com>

Fixed broken HTTP auth.

Rev: lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:1.22

82:    mapping default_headers = ([    "user-agent" : "Mozilla/4.0 compatible (Pike HTTP client)",    "host" : url->host ]); - #if MIME.encode_base64 +     if(url->user || url->passwd)    default_headers->authorization = "Basic "    + MIME.encode_base64(url->user + ":" +    (url->password || "")); - #endif +     request_headers = default_headers | request_headers;       string query=url->query;