Branch: Tag:

1999-08-06

1999-08-06 01:58:36 by Johan Sundström <oyasumi@gmail.com>

Fixed the ugly bugs I introduced. :-}

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

37:    string prot="http",host;    int port=80;    string query; +  if(!request_headers) +  request_headers = ([]);       sscanf(url,"%[^:/]://%[^:/]:%d/%s",prot,host,port,query) == 4 ||    (port=80,sscanf(url,"%[^:/]://%[^:/]/%s",prot,host,query)) == 3 ||
84:    string prot="http",host;    int port=80;    string query; +  if(!request_headers) +  request_headers = ([]);       sscanf(url,"%[^:/]://%[^:/]:%d/%s",prot,host,port,query) == 4 ||    (port=80,sscanf(url,"%[^:/]://%[^:/]/%s",prot,host,query)) == 3 ||