springcomp/HttpTrackingMiddleware

HttpException when adding http-trakcking-id?

Closed this issue · 1 comments

I'm receiving this exception:
HttpException was unhandled by user code

Additional information: Server cannot append header after HTTP headers have been sent.

This happens on this line:
resp.Headers.Add("http-tracking-id", new[] {apiPacket.TrackingId.ToString("d"),});

Thank you for your feedback and sorry about your issue.

Do you have the problem with the sample application included in this code?
Please, can you elaborate a bit more about how you are hosting this code?