Procházet zdrojové kódy

Support HEAD requests

tags/v0.2.7^0
JustAnotherArchivist před 2 roky
rodič
revize
215ac03221
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py Zobrazit soubor

@@ -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 = []


Načítá se…
Zrušit
Uložit