Fix url problems - bad host name, and bad servlet path - introduced by froyo merge.

This commit is contained in:
Kevin Ruland 2012-07-18 15:48:51 +00:00
parent 19b33d1583
commit 5c854fd4c1

View File

@ -25,7 +25,7 @@ public abstract class ThrustCurveAPI {
AndroidLogWrapper.d(ThrustCurveAPI.class, "doSearch: " + requestString); AndroidLogWrapper.d(ThrustCurveAPI.class, "doSearch: " + requestString);
// Froyo has troubles resolving URLS constructed with protocols. Because of this // Froyo has troubles resolving URLS constructed with protocols. Because of this
// we need to do it in parts. // we need to do it in parts.
URL url = new URL("http", "www.thurustcurve.org", "servlets/search"); URL url = new URL("http", "www.thrustcurve.org", "/servlets/search");
OutputStream stream; OutputStream stream;
@ -60,7 +60,7 @@ public abstract class ThrustCurveAPI {
AndroidLogWrapper.d(ThrustCurveAPI.class, "downloadData: " + requestString); AndroidLogWrapper.d(ThrustCurveAPI.class, "downloadData: " + requestString);
// Froyo has troubles resolving URLS constructed with protocols. Because of this // Froyo has troubles resolving URLS constructed with protocols. Because of this
// we need to do it in parts. // we need to do it in parts.
URL url = new URL("http", "www.thurustcurve.org", "servlets/download"); URL url = new URL("http", "www.thrustcurve.org", "/servlets/download");
OutputStream stream; OutputStream stream;