Update of /cvsroot/pyxida/AsyncJ/src/edu/harvard/syrah/sbon/async/comm/http
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20481/src/edu/harvard/syrah/sbon/async/comm/http
Modified Files:
HTTPComm.java
Log Message:
Sync now returns Errors as Results
Index: HTTPComm.java
===================================================================
RCS file: /cvsroot/pyxida/AsyncJ/src/edu/harvard/syrah/sbon/async/comm/http/HTTPComm.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** HTTPComm.java 4 Jun 2007 17:55:41 -0000 1.1
--- HTTPComm.java 15 Jun 2007 16:13:23 -0000 1.2
***************
*** 972,975 ****
--- 972,981 ----
EL.get().registerTimerCB(new CB0() {
protected void cb(CBResult resultOK) {
+
+ /* Remove trailing slash */
+
+ if (uri.endsWith("/"))
+ uri = uri.substring(0, uri.length() - 1);
+
final HTTPCallbackHandler httpRequestHandler = getRequestHandler(uri);
|