Skip to content

Commit

Permalink
Update log-input-files
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar authored Jun 14, 2024
1 parent bb7af2f commit bb502cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log-input-files
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ElasticSearchPrinter(object):
sha1_id)
request = Request(url)
if self.auth:
base64string = base64.encodestring(self.auth).replace('\n', '')
base64string = base64.encodebytes(self.auth.encode()).decode().replace('\n', '')
request.add_header("Authorization", "Basic %s" % base64string)
request.get_method = lambda: 'PUT'
result = urlopen(request, data=json.dumps(payload))
Expand Down

0 comments on commit bb502cd

Please sign in to comment.