nkassis nkassis - 1 year ago 452
HTTP Question

Asp.net Core RC2 how to disable Transfer-Encoding: chunked on response

I'm having issues with certain http clients (Matlab and KDB) having problems with chunked http responses.

Is there a way to disable chunked responses in Kestrel?

Answer Source

Specify the content-length for responses. This may require buffering. https://github.com/aspnet/BasicMiddleware/blob/dev/samples/ResponseBufferingSample/Startup.cs#L17

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download