Skip to content

Commit

Permalink
fix(esb/usermanage): fix usermanage username missing after esb proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Mar 31, 2022
1 parent 56c1602 commit 148ec7d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ class UsermanageComponent(ConfComponent):
api_type = API_TYPE_Q

def handle(self):
request_info = self.get_request_info()
extra_params = {}
username = self.request.kwargs.get("username")
if username:
extra_params["username"] = username

request_info = self.get_request_info(extra_params=extra_params)
# request_info = self.get_request_info()

response = self.outgoing.http_client.request(
self.dest_http_method,
Expand All @@ -34,6 +40,7 @@ def handle(self):
headers={
"Bk-Username": self.current_user.username,
"Bk-App-Code": self.request.app_code,
"Content-Type": "application/json",
},
)

Expand Down

0 comments on commit 148ec7d

Please sign in to comment.