Skip to content

Commit

Permalink
fix: Fix proxy url in Python (box/box-codegen#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed Sep 19, 2024
1 parent c7bc2f8 commit 03aaa10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "5ceb679", "specHash": "d9f90b8", "version": "1.5.0" }
{ "engineHash": "754a5b2", "specHash": "d9f90b8", "version": "1.5.0" }
2 changes: 1 addition & 1 deletion box_sdk_gen/networking/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def with_proxy(self, config: ProxyConfig) -> 'NetworkSession':
proxy_auth = (
f'{config.username}:{config.password}@'
if config.username and config.password
else None
else ''
)
proxy_url = f'http://{proxy_auth}{proxy_host}'
return NetworkSession(self.additional_headers, self.base_urls, proxy_url)

0 comments on commit 03aaa10

Please sign in to comment.