Skip to content

Commit

Permalink
Fix exception when using auth token
Browse files Browse the repository at this point in the history
Change-Id: I2eeae3c2f124de3a9ef33814bfa9f8fccfdfc2a5
Signed-off-by: Eric Bischoff <[email protected]>
  • Loading branch information
Bischoff committed Dec 12, 2023
1 parent b523f03 commit 19a7fc6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zvmsdk/sdkwsgi/requestlog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright Contributors to the Feilong Project.
# SPDX-License-Identifier: Apache-2.0

# Copyright 2017 IBM Corp.
# Copyright 2017-2023 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
Expand Down Expand Up @@ -52,10 +52,6 @@ def _local_response(status, headers, exc_info=None):
for name, value in headers:
if name.lower() == 'content-length':
size = value
for index, value in enumerate(headers):
if value[0] == 'X-Auth-Token':
headers[index] = ('X-Auth-Token', value[1].decode('utf-8'))
break

self._write_log(environ, req_uri, status, size, headers,
exc_info)
Expand Down

0 comments on commit 19a7fc6

Please sign in to comment.