Explorar el Código

Fix Requests

http3
tech234a hace 3 años
padre
commit
2115c9ccce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      switchable_request.py

+ 1
- 1
switchable_request.py Ver fichero

@@ -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)

Cargando…
Cancelar
Guardar