Opened 5 years ago

Last modified 4 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 rjollos)

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 5 years ago by anonymous

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

comment:2 Changed 5 years ago by rjollos

  • Description modified (diff)
  • Summary changed from "Many content-Leght headers" error received when posting a comment to "Many content-Length headers" error received when posting a comment

comment:3 Changed 4 years ago by FilipeCorreia

  • 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.

Add Comment

Modify Ticket

as new The owner will remain osimons.

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

Note: See TracTickets for help on using tickets.