Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue36522

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:http/client.py does not print duplicate header values in debug
Type:Stage:resolved
Components:Library (Lib)Versions:Python 3.8, Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: houglum, serhiy.storchaka
Priority:normalKeywords:patch

Created on2019-04-04 02:45 byhouglum, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 12681mergedpython-dev,2019-04-04 03:41
PR 12682mergedmiss-islington,2019-04-04 04:37
Messages (4)
msg339424 -(view)Author: Matt Houglum (houglum)*Date: 2019-04-04 02:45
This is a follow-up tohttps://bugs.python.org/issue33365.  The fix for that issue (seehttps://github.com/python/cpython/pull/6611) added a statement to also print header values, but it does not account for the case where multiple values exist for the same header name, e.g. if my response contained these headers:x-goog-hash: crc32c=KAwGng==x-goog-hash: md5=eB5eJF1ptWaXm4bijSPyxw==then the debug output would print whichever of those values is returned from `self.headers.get("x-goog-hash")` for both prints:header: x-goog-hash: crc32c=KAwGng==header: x-goog-hash: crc32c=KAwGng==The iteration should instead be done using self.headers.items(), which will return the key and value pair to be printed. I'll send a GitHub PR shortly.
msg339432 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2019-04-04 04:36
New changeset461c416dd78a98f2bba7f323af8c9738e060b6f2 by Serhiy Storchaka (Matt Houglum) in branch 'master':bpo-36522: Print all values for headers with multiple values. (GH-12681)https://github.com/python/cpython/commit/461c416dd78a98f2bba7f323af8c9738e060b6f2
msg339435 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2019-04-04 08:26
New changeset6f9cd142a20d0d2a5825a9db376ce0ddf1933694 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7':bpo-36522: Print all values for headers with multiple values. (GH-12681) (GH-12682)https://github.com/python/cpython/commit/6f9cd142a20d0d2a5825a9db376ce0ddf1933694
msg339436 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2019-04-04 08:27
3.6 take only security bugs fixes now.
History
DateUserActionArgs
2022-04-11 14:59:13adminsetgithub: 80703
2019-04-04 08:27:34serhiy.storchakasetstatus: open -> closed
versions: - Python 3.6
messages: +msg339436

resolution: fixed
stage: patch review -> resolved
2019-04-04 08:26:04serhiy.storchakasetmessages: +msg339435
2019-04-04 04:37:25miss-islingtonsetpull_requests: +pull_request12610
2019-04-04 04:36:52serhiy.storchakasetnosy: +serhiy.storchaka
messages: +msg339432
2019-04-04 03:41:27python-devsetkeywords: +patch
stage: patch review
pull_requests: +pull_request12608
2019-04-04 02:45:33houglumcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp