fakemobileclient.js

This commit is contained in:
Laura Klünder 2017-12-21 00:34:09 +01:00
parent 8aa94e5c2f
commit 9066318b10
5 changed files with 39 additions and 2 deletions

View file

@ -15,8 +15,8 @@ def get_from_lines(lines, keyword):
class FakeMobileClientHandler(http.server.BaseHTTPRequestHandler):
def do_GET(self):
"""Serve a GET request."""
if self.path != '/scan/':
self.send_error(404, explain='Look at /scan/')
if self.path != '/scan':
self.send_error(404, explain='Look at /scan')
return
while True: