0

We are using revel for HLS streaming; while streaming the master playlist, need to set the Transfer-Encoding as "chunked".

With below line, we are able to set the Content-Type header;

c.Response.Out.Header().Add("Content-Type", "application/vnd.apple.mpegurl")

However, unable to set Transfer-Encoding in the response header.

Any suggestions/example snippets are welcome. Thanks!

Muthu Thavamani
  • 1,162
  • 7
  • 17
  • Why are you not able to set the Transfer-Encoding header? Are there any errors or warnings? When you send that header (which should work the same way as the content type) you should then also correctly send a [chunked http response](https://stackoverflow.com/q/26769626). Maybe the framework you use also has an option to do that automatically – xarantolus Jan 20 '20 at 17:25
  • Maybe you also need to add the option [someone mentions here](https://github.com/revel/revel/issues/357) – xarantolus Jan 20 '20 at 17:28
  • @xarantolus I have tested by setting the "Transfer-Encoding" in response and by enabling the conf and tested; but, still the client receives the result as plain text. – Muthu Thavamani Jan 20 '20 at 17:36
  • also there is no "Transfer-Encoding" header in client's Response Header – Muthu Thavamani Jan 20 '20 at 17:37

0 Answers0