Skip over beginning / in request when comparing to token.

This commit is contained in:
Bryce Curtis 2011-01-16 15:15:24 -06:00
parent b9e1b1d280
commit b7abc2c344

View File

@ -195,7 +195,7 @@ public class CallbackServer implements Runnable {
String[] requestParts = request.split(" "); String[] requestParts = request.split(" ");
// Must have security token // Must have security token
if ((requestParts.length == 3) && (requestParts[1].equals(this.token))) { if ((requestParts.length == 3) && (requestParts[1].substring(1).equals(this.token))) {
//System.out.println("CallbackServer -- Processing GET request"); //System.out.println("CallbackServer -- Processing GET request");
// Wait until there is some data to send, or send empty data every 10 sec // Wait until there is some data to send, or send empty data every 10 sec