Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2466 (closed defect: migrated)

Opened 9 years ago

Last modified 8 years ago

[PATCH] Overlapping 'Content-Type' is set to pylons.resonse.headers

Reported by: Tomoyuki Kano Owned by: percious
Priority: high Milestone: 2.1.1
Component: TurboGears Version: trunk
Severity: major Keywords:
Cc:

Description

  1. This assignment put two 'Content-Type' on pylons.response.header as a result.

tg/configuration.py:197

pylons_config['pylons.response_options']['headers']['Content-Type'] = None
  1. The DecoratedController._render_response corrects this situation with most cases.
  1. However, if pylons.controllers.XMLRPCController is used for instance with TG2, paste.replace_header() generates the exception by response generated from config that TG2 destroyed.

Attachments

tg21.duplicate_content_type.patch Download (1.2 KB) - added by Tomoyuki Kano 9 years ago.

Change History

Changed 9 years ago by Tomoyuki Kano

comment:1 Changed 9 years ago by Tomoyuki Kano

  • Summary changed from pylons.resonse.headers contains duplicated 'Content-Type' to [PATCH] Overlapping 'Content-Type' is set to pylons.resonse.headers

comment:2 Changed 9 years ago by chrisz

  • Milestone changed from __unclassified__ to 2.1rc1

comment:3 Changed 9 years ago by percious

  • Milestone changed from 2.1rc1 to 2.1

comment:4 Changed 9 years ago by percious

hmm. This is an interesting problem/solution. Probably it will be good to implement for 2.1.1

comment:5 Changed 9 years ago by percious

  • Status changed from new to assigned
  • Owner set to percious

comment:6 Changed 9 years ago by percious

  • Milestone changed from 2.1 to 2.1.1

comment:7 Changed 8 years ago by pedersen

  • Status changed from assigned to closed
  • Resolution set to migrated
Note: See TracTickets for help on using tickets.