Skip to content

Commit

Permalink
don't pass an x-auth-header when /run
Browse files Browse the repository at this point in the history
auth should be handled only by token provided in low
  • Loading branch information
mattp- committed Mar 12, 2019
1 parent f87815f commit c4790e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pepper/libpepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def req(self, path, data=None):
req.add_header('Content-Length', clen)

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

# Send request
Expand Down

0 comments on commit c4790e7

Please sign in to comment.