aio-libs / aio-libs/aiohttp

Partitioned cookies on Python <3.14

オープン
#10,380 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
16.5k
フォーク
2.4k
平均マージ
17時間 22分
マージ済み PR(30日)
212

説明

In aiohttp 3.12 we'll have support for partitioned cookies, but this is dependent on upstream support in Python 3.14+.

If anyone needs support in an older release of Python, it can be monkey patched with this code:
```python
if sys.version_info < (3, 14):
from http import cookies

# See: https://github.com/python/cpython/issues/112713
cookies.Morsel._reserved["partitioned"] = "partitioned"
cookies.Morsel._flags.add("partitioned")
```

I'll leave this as a pinned issue for a couple of years until the feature is more widely available without monkey patching.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。