Skip to content

Commit 6942484

Browse files
committed
Switch to Authorization Header for Authentication
1 parent 7ee4f65 commit 6942484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

machine_controller/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
@app.route('/vend', methods=['POST'])
4545
def hello_world():
46-
if request.headers.get('TOKEN', '') != token_value:
46+
if request.headers.get('Authorization', '') != token_value:
4747
abort(401)
4848
data = request.json()
4949
items = data['items']

0 commit comments

Comments
 (0)