Skip to content

Commit 2065f97

Browse files
committed
测试
1 parent 81ebd2c commit 2065f97

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api/index.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ def getdata(name):
2929
class handler(BaseHTTPRequestHandler):
3030

3131
def do_GET(self):
32-
name = self.headers.get('Location').encode()
33-
32+
name = self.headers
3433
self.send_response(200)
35-
self.send_header('Content-type','application/json')
34+
self.send_header('Content-type','text/plain')
3635
self.end_headers()
3736
self.wfile.write(json.dumps(name).encode('utf-8'))
3837
return

0 commit comments

Comments
 (0)