Skip to content
Open
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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## 0.28.0 (28th November, 2024)

Be aware that the default *JSON request bodies now use a more compact representation*. This is generally considered a prefered style, tho may require updates to test suites.
Be aware that the default *JSON request bodies now use a more compact representation*. This is generally considered a preferred style, tho may require updates to test suites.

The 0.28 release includes a limited set of deprecations...

Expand Down Expand Up @@ -151,7 +151,7 @@ Our revised [SSL documentation](docs/advanced/ssl.md) covers how to implement th

### Removed

* The `rfc3986` dependancy has been removed. (#2252)
* The `rfc3986` dependency has been removed. (#2252)

## 0.23.3 (4th January, 2023)

Expand Down
4 changes: 2 additions & 2 deletions docs/advanced/ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import certifi
import httpx
import ssl

# This SSL context is equivelent to the default `verify=True`.
# This SSL context is equivalent to the default `verify=True`.
ctx = ssl.create_default_context(cafile=certifi.where())
client = httpx.Client(verify=ctx)
```
Expand All @@ -46,7 +46,7 @@ ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
client = httpx.Client(verify=ctx)
```

Loding an alternative certificate verification store using [the standard SSL context API](https://docs.python.org/3/library/ssl.html)...
Loading an alternative certificate verification store using [the standard SSL context API](https://docs.python.org/3/library/ssl.html)...

```python
import httpx
Expand Down
2 changes: 1 addition & 1 deletion httpx/_multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(self, name: str, value: FileTypes) -> None:
# This large tuple based API largely mirror's requests' API
# It would be good to think of better APIs for this that we could
# include in httpx 2.0 since variable length tuples(especially of 4 elements)
# are quite unwieldly
# are quite unwieldy
if isinstance(value, tuple):
if len(value) == 2:
# neither the 3rd parameter (content_type) nor the 4th (headers)
Expand Down
4 changes: 2 additions & 2 deletions httpx/_urlparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ def urlparse(url: str = "", **kwargs: str | None) -> ParseResult:
# Replace "raw_path" with "path" and "query".
if "raw_path" in kwargs:
raw_path = kwargs.pop("raw_path") or ""
kwargs["path"], seperator, kwargs["query"] = raw_path.partition("?")
if not seperator:
kwargs["path"], separator, kwargs["query"] = raw_path.partition("?")
if not separator:
kwargs["query"] = None

# Ensure that IPv6 "host" addresses are always escaped with "[...]".
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,13 @@ filterwarnings = [
"ignore: trio.MultiError is deprecated since Trio 0.22.0:trio.TrioDeprecationWarning"
]
markers = [
"copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup",
"copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accommodate e.g. our test setup",
"network: marks tests which require network connection. Used in 3rd-party build environments that have network disabled."
]

[tool.coverage.run]
omit = ["venv/*"]
include = ["httpx/*", "tests/*"]

[tool.codespell]
ignore-words-list = "asend,te"
2 changes: 1 addition & 1 deletion tests/models/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def test_url_leading_dot_prefix_on_relative_url():

def test_param_with_space():
# Params passed as form key-value pairs should be form escaped,
# Including the special case of "+" for space seperators.
# Including the special case of "+" for space separators.
url = httpx.URL("http://webservice", params={"u": "with spaces"})
assert str(url) == "http://webservice?u=with+spaces"

Expand Down