diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2004-02-04 19:57:40 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2004-02-04 19:57:40 +0000 |
commit | bf22966f558ca95222c94706124a3a385f5aa0bf (patch) | |
tree | 3fc51748cfbd01528367403f17e917258c401de7 /src/common.h | |
parent | 47df93b8f322e4c772b72502d94b38afa199b3fd (diff) | |
download | tinyproxy-bf22966f558ca95222c94706124a3a385f5aa0bf.tar.gz tinyproxy-bf22966f558ca95222c94706124a3a385f5aa0bf.zip |
(strip_return_port): Patch from "alex" to strip the port from the host
string and return the port. I cleaned up and added error handling to
the code, but it's basically "alex"'s fix.
(extract_http_url): Rewrote this function to remove all the sscanf()
calls. It's much easier to just split on the path slash (if it's
present) and then strip the user name/password and port from the host
string. Less code, handles more cases!
Diffstat (limited to 'src/common.h')
0 files changed, 0 insertions, 0 deletions