1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Don't send Content-Length for OPTIONS requests when there is no data. (#1319)

This commit is contained in:
Batuhan Taskaya
2022-04-03 16:02:41 +03:00
committed by GitHub
parent d1596dde12
commit 33ea977b64
5 changed files with 71 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ URL_SCHEME_RE = re.compile(r'^[a-z][a-z0-9.+-]*://', re.IGNORECASE)
HTTP_POST = 'POST'
HTTP_GET = 'GET'
HTTP_OPTIONS = 'OPTIONS'
# Various separators used in args
SEPARATOR_HEADER = ':'