Don't use the devicename parameter when pairing anymore. It's not using since GFE 2.0.0 and it can cause problems if invalid characters get added to the URL

This commit is contained in:
Cameron Gutman 2014-05-11 13:31:04 -04:00
parent e593c04001
commit f537588228

View File

@ -100,8 +100,7 @@ public class NvHTTP {
} }
public int getSessionId() throws IOException, XmlPullParserException { public int getSessionId() throws IOException, XmlPullParserException {
InputStream in = openHttpConnection(baseUrl + "/pair?uniqueid=" + uniqueId InputStream in = openHttpConnection(baseUrl + "/pair?uniqueid=" + uniqueId);
+ "&devicename=" + deviceName);
String sessionId = getXmlString(in, "sessionid"); String sessionId = getXmlString(in, "sessionid");
return Integer.parseInt(sessionId); return Integer.parseInt(sessionId);
} }