This commit is contained in:
parent
0c4c15b75c
commit
392e4caff2
1 changed files with 3 additions and 3 deletions
6
app.py
6
app.py
|
@ -1,4 +1,4 @@
|
|||
from flask import Flask, request
|
||||
from flask import Flask, request, jsonify
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
@ -7,7 +7,7 @@ def show_headers():
|
|||
# Get headers from request object
|
||||
headers = dict(request.headers)
|
||||
|
||||
return headers, 200
|
||||
return jsonify(headers)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
app.run()
|
||||
|
|
Loading…
Add table
Reference in a new issue