Code

Opened 3 years ago

Closed 3 years ago

#15650 closed (invalid)

HttpResponse.items() should return _headers.items()

Reported by: funkycoder@… Owned by: nobody
Component: HTTP handling Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Currently django.http.HttpResponse.items() returns a list of the header's values. This is useless and counterintuitive.
items() should return the underlying dictionary's items(), not its values().

Attachments (1)

httpresponse-items.patch (452 bytes) - added by funkycoder@… 3 years ago.

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by funkycoder@…

comment:1 Changed 3 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.