You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Miranda (v1-1) does not recognize HTTP/1.0 headers returned by the device.
Steps to reproduce:
1. upnp> msearch
2. upnp> host get 0
3. upnp> host send 0 WANConnectionDevice WANIPConnection GetExternalIPAddress
SOAP request failed with error code: 200 OK
The expected output would have been:
NewExternalIPAddress : 82.171.240.239
Instead, an error is returned:
SOAP request failed with error code: 200 OK
The apparent reason for this is because Miranda checks the response for HTTP
error code 200 to determine if the request was successful. It does this using
the following code:
if not header.upper().startswith('HTTP/1.1 200'):
However, my particular device returns an HTTP/1.0 response and not HTTP/1.1.
I've attached a patch to fix the problem. Apply it with:
miranda_1-1/$ patch -p0 < miranda-http10.patch
patching file miranda.py
Original issue reported on code.google.com by ferry.bo...@gmail.com on 11 Dec 2011 at 10:59
Original issue reported on code.google.com by
ferry.bo...@gmail.com
on 11 Dec 2011 at 10:59Attachments:
The text was updated successfully, but these errors were encountered: