The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Content-Length Header being set by Slim

Paul Prior's Avatar

Paul Prior

09 Mar, 2012 02:46 PM

I just experienced a frustrating bug due to slim setting the ContentLength header and using new relic with its beacon. All pages returned were truncated by the length of the new relic beacon. Isnt the Content-Length header unnecessary most of the time?

  1. Support Staff 1 Posted by Josh Lockhart on 25 Mar, 2012 03:04 PM

    Josh Lockhart's Avatar

    Slim will set the Content-Length header based on the bytesize of its response. If the Content-Length header does not correspond with the true length of the response body, that's an issue. But I don't see any errors in the code that would cause this to happen.

    What is New Relic? Or a beacon? I need to know more context about your setup before I can diagnose this further.

  2. Josh Lockhart closed this discussion on 12 Feb, 2021 07:50 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac