mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
tests: Decode upnp_soap_action() response for python3
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
69f58282bc
commit
732b76139a
@ -2885,7 +2885,7 @@ def test_ap_wps_upnp(dev, apdev):
|
||||
resp = upnp_soap_action(conn, ctrlurl.path, "GetDeviceInfo")
|
||||
if resp.status != 200:
|
||||
raise Exception("Unexpected HTTP response: %d" % resp.status)
|
||||
dev = resp.read()
|
||||
dev = resp.read().decode()
|
||||
if "NewDeviceInfo" not in dev:
|
||||
raise Exception("Unexpected GetDeviceInfo response")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user