Explorar o código

Do not send a proper XML header on init token response

The vTuner API doesn't do it and some AVRs have problems with it.
Thanks to @AlfredJ91 for the heads-up.
milaq %!s(int64=6) %!d(string=hai) anos
pai
achega
63b87dfa95
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ycast/vtuner.py

+ 1 - 1
ycast/vtuner.py

@@ -4,7 +4,7 @@ XML_HEADER = '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'
 
 
 def get_init_token():
-    return XML_HEADER + '<EncryptedToken>0000000000000000</EncryptedToken>'
+    return '<EncryptedToken>0000000000000000</EncryptedToken>'
 
 
 def strip_https(url):