diff options
author | Roger Dingledine <arma@torproject.org> | 2002-08-24 07:56:34 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2002-08-24 07:56:34 +0000 |
commit | 39423023af7a13eff3263c59c7856c5cefbf2484 (patch) | |
tree | c4d47f9f7574ee37245f3ad5bf3e0724221d12e0 /src/httpap/http.c | |
parent | b8b8ab2fd6753c3f8b1e20e43047e29b5e44aea1 (diff) | |
download | tor-39423023af7a13eff3263c59c7856c5cefbf2484.tar tor-39423023af7a13eff3263c59c7856c5cefbf2484.tar.gz |
proxies send port in host order as ascii string
svn:r83
Diffstat (limited to 'src/httpap/http.c')
-rw-r--r-- | src/httpap/http.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/httpap/http.c b/src/httpap/http.c index 09116cec7..9dab57aa9 100644 --- a/src/httpap/http.c +++ b/src/httpap/http.c @@ -8,8 +8,11 @@ /* * Changes : * $Log$ - * Revision 1.1 2002/06/26 22:45:50 arma - * Initial revision + * Revision 1.2 2002/08/24 07:56:22 arma + * proxies send port in host order as ascii string + * + * Revision 1.1.1.1 2002/06/26 22:45:50 arma + * initial commit: current code * * Revision 1.2 2002/04/02 14:27:33 badbytes * Final finishes. @@ -144,6 +147,10 @@ int http_get_dest(unsigned char *rl, unsigned char **addr, unsigned char **port) return -1; /* check for a :port in the address */ + +/* BUG: if there's a : later in the url, eg in google's cache pages, + * this gets confused and fails + */ colon = strchr(start,':'); if (colon) { |