Browse Source

Support HEAD requests

tags/v0.2.7^0
JustAnotherArchivist 2 years ago
parent
commit
215ac03221
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py View File

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


Loading…
Cancel
Save