mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
Skip over beginning / in request when comparing to token.
This commit is contained in:
parent
b9e1b1d280
commit
b7abc2c344
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user