Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ lint:
flake8 $(PACKAGE) tests
pylint --rcfile=pyproject.toml $(PACKAGE) tests
mypy $(PACKAGE) tests
pip-audit
pip-audit -l

.PHONY: testall
testall: lint test
Expand Down
2 changes: 1 addition & 1 deletion httprest/http/urllib_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _request(
data = urllib.parse.urlencode(data).encode() # type: ignore
headers["Content-Type"] = "application/x-www-form-urlencoded"

if json:
if json is not None:
headers["Content-Type"] = "application/json"
data = _jsonlib.dumps(json).encode()

Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import nox


@nox.session(python=["3.9", "3.11", "3.12", "3.13", "3.14"])
@nox.session(python=["3.11", "3.12", "3.13", "3.14"])
def tests(session):
"""Run tests."""
session.run("make", "testdeps", external=True)
Expand Down
Loading
Loading