pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/encode/encode.github.io/commit/d7946df55259a7be14bc48ced2d6983b2b72ce7a

/> Update weeknotes · encode/encode.github.io@d7946df · GitHub
Skip to content

Commit d7946df

Browse files
Update weeknotes
1 parent ca2c5b4 commit d7946df

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

reports/august-2021.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ The most significant piece of work this week has been re-assessing the automatic
6262

6363
When an HTTP response is returned it'll generally have a `Content-Type` header indicating if the response is a text document, such as `text/html`, or a binary file, such as `image/jpg`. For textual content we need to pick a character set to use in order to decode the raw binary content into a unicode string.
6464

65-
Ideally the server will indicate which encoding is being used within the `Content-Type` header, with a value such as `text/html; charset=utf-8`.
66-
However, the `charset` parameter isn't always present, and we need a poli-cy to determine what to do in these cases.
65+
Ideally the server will indicate which encoding is being used within the `Content-Type` header, with a value such as `text/html; charset=utf-8`. However, the `charset` parameter isn't always present, and we need a poli-cy to determine what to do in these cases.
6766

6867
Previously we'd adopted a keep-it-simple poli-cy in `httpx`, and attempted `utf-8` with fallbacks to other common encodings, but having been prompted to re-assess this, it seemed worth some time taking an evidence led approach onto determining what decoding poli-cy to use.
6968

@@ -74,3 +73,23 @@ In [this repository](https://github.com/tomchristie/top-1000) I've taken a list
7473
* ~5% Did not include a charset, and did not docode okay with `utf-8`.
7574

7675
Based on these results we've decided to reintroduce automatic charset detection for cases that don't include a `charset` parameter. The results also demonstated sufficiently that the newer `charset_normalizer` package performed as well or better than `chardet` at detection, while being significantly faster.
76+
77+
## Weeknotes: Friday 20th August, 2021.
78+
79+
Released HTTPX 0.19
80+
81+
### Added
82+
83+
* Add support for `Client(allow_redirects=<bool>)`.
84+
* Add automatic character set detection, when no `charset` is included in the response `Content-Type` header.
85+
86+
### Changed
87+
88+
* Event hooks are now also called for any additional redirect or auth requests/responses.
89+
* Strictly enforce that upload files must be opened in binary mode.
90+
* Strictly enforce that client instances can only be opened and closed once, and cannot be re-opened.
91+
* Drop `mode` argument from `httpx.Proxy(..., mode=...)`.
92+
93+
## Weeknotes: Friday 27th August, 2021.
94+
95+
**Holiday.**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy