Opened 12 years ago

Last modified 11 years ago

#10093 new defect

"Many content-Length headers" error received when posting a comment

Reported by: anonymous Owned by: osimons
Priority: normal Component: AddCommentMacro
Severity: normal Keywords: patch
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

When submitting a comment Google Chrome show

Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH): many  "Content-Length" headers recerived. 

Chrome version: 19.0.1084.56 m

A very similar issue happens with Firefox 12 (a Corrupt content message is displayed)

Attachments (0)

Change History (3)

comment:1 Changed 12 years ago by anonymous

Trac core seems to have had the same problem: t:#10412

comment:2 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)
Summary: "Many content-Leght headers" error received when posting a comment"Many content-Length headers" error received when posting a comment

comment:3 Changed 11 years ago by Filipe Correia

Keywords: patch added

I've made a (somewhat ugly) patch to fix this issue, that makes the plugin compatible with Trac 1.0. See:

For future reference, the complete error message as reported by Google Chrome was:

Duplicate headers received from server

The response from the server contained duplicate headers. This problem is generally the result of a misconfigured website or proxy. Only the website or proxy administrator can fix this issue.

Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH): Multiple distinct Content-Length headers received. This is disallowed to protect against HTTP response splitting attacks.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain osimons.

Add Comment

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

Note: See TracTickets for help on using tickets.