Browse Source

Fix Requests

http3
tech234a 3 years ago
parent
commit
2115c9ccce
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      switchable_request.py

+ 1
- 1
switchable_request.py View File

@@ -1,7 +1,7 @@
import http3
def get(url: str, params: tuple = (), backend="requests", mysession=None, http3headers: dict ={}):
if backend == "requests":
return mysession.get(url, params)
return mysession.get(url, params=params)
elif backend == "http3":
#print(http3headers)
return http3.get(url, headers=http3headers, params=params)

Loading…
Cancel
Save