urllib.request add_header() currently allows trailing spaces (and other weird stuff)

Đang mở
#61,524 22 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
networking

Hướng nghiên cứu

Start at urllib.request.add_header() and compare its behavior with issue-17322-1.patch and request_header_space_removal.patch. Determine the expected handling of trailing spaces and other malformed values, then verify the change with focused urllib.request tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

stdlib type-bug
BPO 17322
Nosy @orsenthil, @bitdancer, @karlcow, @vadmium, @serhiy-storchaka
Files
  • issue-17322-1.patch
  • request_header_space_removal.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2013-02-28.21:27:14.234>
    labels = ['type-bug', 'library']
    title = 'urllib.request add_header() currently allows trailing spaces (and other weird stuff)'
    updated_at = <Date 2015-03-12.09:25:59.868>
    user = 'https://github.com/karlcow'
    

    bugs.python.org fields:

    activity = <Date 2015-03-12.09:25:59.868>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2013-02-28.21:27:14.234>
    creator = 'karlcow'
    dependencies = []
    files = ['29292', '29297']
    hgrepos = []
    issue_num = 17322
    keywords = ['patch']
    message_count = 22.0
    messages = ['183234', '183236', '183322', '183357', '183382', '183383', '183384', '183385', '183393', '183397', '183398', '183399', '183400', '183410', '183412', '183415', '183451', '183459', '183467', '227361', '236425', '237920']
    nosy_count = 6.0
    nosy_names = ['orsenthil', 'r.david.murray', 'karlcow', 'martin.panter', 'piotr.dobrogost', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue17322'
    versions = ['Python 3.5']
    

    Ngôn ngữ chính
    Python
    Star
    77.2k
    Fork
    36k
    Merge trung bình
    1 ngày 9 giờ
    Pull request đã merge (30 ngày)
    558

    Hướng dẫn đóng góp

    Mở hướng dẫn đóng góp

    Bắt đầu từ đâu

    1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
    2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
    3. Fork repository và làm thay đổi trên một nhánh.
    4. Mở pull request có tham chiếu số hiệu của issue.

    Issue khác của python/cpython

    Tất cả issue của python/cpython

    Issue tương tự

    Thêm issue về Python

    Nhận issue mới trong hộp thư của bạn

    Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.