There was an error while loading. Please reload this page.
1 parent 81ebd2c commit 2065f97Copy full SHA for 2065f97
api/index.py
@@ -29,10 +29,9 @@ def getdata(name):
29
class handler(BaseHTTPRequestHandler):
30
31
def do_GET(self):
32
- name = self.headers.get('Location').encode()
33
-
+ name = self.headers
34
self.send_response(200)
35
- self.send_header('Content-type','application/json')
+ self.send_header('Content-type','text/plain')
36
self.end_headers()
37
self.wfile.write(json.dumps(name).encode('utf-8'))
38
return
0 commit comments