Explorar el Código

Support HEAD requests

tags/v0.2.7^0
JustAnotherArchivist hace 2 años
padre
commit
215ac03221
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py Ver fichero

@@ -51,7 +51,7 @@ class Item:
#TODO: Rewrite using 'async with self.session.get'

url = yarl.URL(url) # Explicitly convert for normalisation, percent-encoding, etc.
assert method in ('GET', 'POST'), 'method must be GET or POST'
assert method in ('GET', 'POST', 'HEAD'), 'method must be GET, POST, or HEAD'
headers = self.headers + headers
#TODO Deduplicate headers with later values overriding earlier ones
history = []


Cargando…
Cancelar
Guardar