Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#8121 closed (fixed)

LocaleMiddleware should not set Content-Language header if already present

Reported by: Joost Cassee Owned by: nobody
Component: Internationalization Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The user may have added the Content-Language header to the Response objects explicitely. In that case LocaleMiddleware should not overwrite it. Attached patch fixes this.

Attachments (1)

8121-r8137.diff (575 bytes ) - added by Joost Cassee 16 years ago.

Download all attachments as: .zip

Change History (4)

by Joost Cassee, 16 years ago

Attachment: 8121-r8137.diff added

comment:1 by Eric Holscher, 16 years ago

milestone: 1.0
Triage Stage: UnreviewedReady for checkin

comment:2 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

(In [8259]) Fixed #8121 -- Don't override the Content-Language HTTP header in the locale
middleware if it's already been set. Thanks, jcassee.

comment:3 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top