File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ python:
20
20
additionalDependencies :
21
21
dev : {}
22
22
main :
23
- - " requests>=2.31.0 "
23
+ - " requests"
24
24
authors :
25
25
- Speakeasy
26
26
clientServerStatusCodesAsErrors : true
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ def before_request(
12
12
_ : BeforeRequestContext ,
13
13
request : requests .PreparedRequest
14
14
) -> Union [requests .PreparedRequest , Exception ]:
15
- # modify the request object before it is sent, such as adding headers
16
15
api_key = request .headers .get ("Authorization" )
17
16
request .headers ["Authorization" ] = f"Bearer { api_key } "
18
17
return request
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ def init_hooks(hooks: Hooks):
11
11
"""Add hooks by calling hooks.register{sdk_init/before_request/after_success/after_error}Hook
12
12
with an instance of a hook that implements that specific Hook interface
13
13
Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance"""
14
- hooks .register_before_request_hook (AuthHook ())
14
+ hooks .register_before_request_hook (AuthHook ())
You can’t perform that action at this time.
0 commit comments