Добавлено прикладывание content-length
All checks were successful
Verify Dev Build / publish (push) Successful in 30s

This commit is contained in:
2026-03-08 17:54:16 +03:00
parent 9202f3c0ff
commit 68a719b817
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "OxideHTTP"
version = "1.3.0"
version = "1.3.1"
description = "High-performance Python HTTP client."
readme = "README.md"
authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }]
@ -13,8 +13,6 @@ dependencies = [
[dependency-groups]
dev = [
"ruff>=0.14.13",
"pyright>=1.1.408",
"poethepoet>=0.40.0",
"pre-commit>=4.5.1",
"types-redis>=4.6.0.20241004",

View File

@ -187,6 +187,9 @@ class OxideHTTP:
if headers:
req.headers.update(headers)
if json is None:
req.headers.update({'content-length': '0'})
await self.__wait_until_ready()
return await req.send()