Branch: Tag:

2003-12-04

2003-12-04 19:31:39 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

default header Host should contain port if not default

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

35:    mapping default_headers = ([    "user-agent" : "Mozilla/5.0 (compatible; MSIE 6.0; Pike HTTP client)"    " Pike/" + __REAL_MAJOR__ + "." + __REAL_MINOR__ + "." + __REAL_BUILD__, -  "host" : url->host ]); +  "host" : url->host + +  (url->port!=(url->scheme=="https"?443:80)?":"+url->port:"")]);       if(url->user || url->passwd)    default_headers->authorization = "Basic "