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