projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ebbcec1
)
bugfix in url parsing for HTTP.java
author
adam
<adam@megacz.com>
Mon, 19 Apr 2004 09:46:59 +0000
(09:46 +0000)
committer
adam
<adam@megacz.com>
Mon, 19 Apr 2004 09:46:59 +0000
(09:46 +0000)
darcs-hash:
20040419094659
-5007d-
429305fdfa53c594a55e252c91dded299d4e93c5
.gz
src/org/ibex/net/HTTP.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/net/HTTP.java
b/src/org/ibex/net/HTTP.java
index
0142a9e
..
15ba899
100644
(file)
--- a/
src/org/ibex/net/HTTP.java
+++ b/
src/org/ibex/net/HTTP.java
@@
-180,8
+180,8
@@
public class HTTP {
/** Attempts a direct connection */
private Socket attemptDirect() {
try {
/** Attempts a direct connection */
private Socket attemptDirect() {
try {
- if (Log.verbose) Log.info(this, "attempting to create unproxied socket to " +
- host + ":" + port + (ssl ? " [ssl]" : ""));
+ Log.info(this, "attempting to create unproxied socket to " +
+ host + ":" + port + (ssl ? " [ssl]" : ""));
return getSocket(host, port, ssl, true);
} catch (IOException e) {
if (Log.on) Log.info(this, "exception in attemptDirect(): " + e);
return getSocket(host, port, ssl, true);
} catch (IOException e) {
if (Log.on) Log.info(this, "exception in attemptDirect(): " + e);
@@
-328,7
+328,7
@@
public class HTTP {
throw new IOException("HTTP only supports http/https urls");
}
if (url.indexOf("://") == -1) throw new IOException("URLs must contain a ://");
throw new IOException("HTTP only supports http/https urls");
}
if (url.indexOf("://") == -1) throw new IOException("URLs must contain a ://");
- String temphost = url.substring(url.indexOf("://") + 1);
+ String temphost = url.substring(url.indexOf("://") + 3);
path = temphost.substring(temphost.indexOf('/'));
temphost = temphost.substring(0, temphost.indexOf('/'));
if (temphost.indexOf(':') != -1) {
path = temphost.substring(temphost.indexOf('/'));
temphost = temphost.substring(0, temphost.indexOf('/'));
if (temphost.indexOf(':') != -1) {