mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-06-24 05:35:10 +00:00
Move user credentials into HTTP request headers to prevent them being logged in the server logs
This commit is contained in:
@@ -47,7 +47,7 @@ class APILookupCallHandler(tornado.web.RequestHandler):
|
||||
if re.match(r"^[A-Z0-9/\-]*$", call):
|
||||
# Take the callsign, make a "fake spot" so we can run infer_missing() on it, then repack the
|
||||
# resulting data in the correct way for the API response.
|
||||
credentials = extract_credentials(query_params)
|
||||
credentials = extract_credentials(self.request.headers)
|
||||
fake_spot = Spot(dx_call=call)
|
||||
fake_spot.infer_missing(credentials)
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user