1
0
Fork 0
firefox/testing/web-platform/mozilla/tests/geolocation-API/dummy.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
404 B
Python

import json
def main(request, response):
response.headers.set(b"Content-Type", b"application/json")
response.headers.set(b"Cache-Control", b"no-cache")
response.content = json.dumps(
{
"status": "OK",
"location": {
"lat": 37.41857,
"lng": -122.08769,
},
"accuracy": 42,
}
).encode("utf-8")