Skip to content

Commit c4790e7

Browse files
committed
don't pass an x-auth-header when /run
auth should be handled only by token provided in low
1 parent f87815f commit c4790e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pepper/libpepper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def req(self, path, data=None):
219219
req.add_header('Content-Length', clen)
220220

221221
# Add auth header to request
222-
if self.auth and 'token' in self.auth and self.auth['token']:
222+
if path != '/run' and self.auth and 'token' in self.auth and self.auth['token']:
223223
req.add_header('X-Auth-Token', self.auth['token'])
224224

225225
# Send request

0 commit comments

Comments
 (0)