Debian Codegraph @

testing/web-platform/mozilla/tests/geolocation-API/dummy.py

raw
1 import json
2
3
4 def main(request, response):
5 response.headers.set(b"Content-Type", b"application/json")
6 response.headers.set(b"Cache-Control", b"no-cache")
7 response.content = json.dumps(
8 {
9 "status": "OK",
10 "location": {
11 "lat": 37.41857,
12 "lng": -122.08769,
13 },
14 "accuracy": 42,
15 }
16 ).encode("utf-8")