How to set "Transfer-Encoding" in go-revel response header?

171 views Asked by At

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!

0

There are 0 answers