pike.git / lib / modules / Protocols.pmod / HTTP.pmod / Session.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:98:    if(url->user || url->password)    request_headers->authorization = "Basic "    + MIME.encode_base64((url->user || "") + ":" +    (url->password || ""));       request_headers->connection=    (time_to_keep_unused_connections<=0)?"Close":"Keep-Alive";       request_headers->host=url->host;    +  if (url->scheme == "http" && url->port != 80) { +  request_headers->host += ":" + url->port; +  } +  else if (url->scheme == "https" && url->port != 443) { +  request_headers->host += ":" + url->port; +  } +     if (extra_headers)    request_headers|=extra_headers;       array v=get_cookies(url_requested);    if (v && sizeof(v))    if (request_headers->cookie)    request_headers->cookie+="; "+v*"; ";    else    request_headers->cookie=v*"; ";