Closed barryvdh closed 10 years ago
And you should probably try to inject it in the body, instead of just appending it. And when you use a Middleware you could probably catch errors as well (not sure if that is possible with After filters in the latest version)
That makes sense. Thanks man. Surprised the body of the request interferes with the header though.
Hmm, probably when you echo, the data is ouputted before the headers are sent properly. Same reason you should echo stuff in controllers, but just return the content. Same goes for filters etc.
Guess so. Thanks dude :)