Branch: Tag:

2004-11-30

2004-11-30 17:40:53 by Martin Stjernholm <mast@lysator.liu.se>

Fixed sloppy error checking: I/O errors except connection failed are
now thrown by the simple query functions.

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

133:    method+" "+path+(query?("?"+query):"")+" HTTP/1.0",    request_headers, data);    -  if (!con->ok) return 0; +  if (!con->ok) { +  if (con->errno) +  error ("I/O error: %s\n", strerror (con->errno)); +  return 0; +  }    return con;   }