On 18-08-2017, wilk wrote:
> Hi,
>
> I'm experiencing a lot of log in nginx :
> upstream prematurely closed connection while reading upstream
>
> Looking in my code it's because I added 
>
> w.Header().Set("content-length", strconv.Itoa(len(w.Body.Bytes())))
> If i remove it, no more logs and my clients are happy again

I answer to myself, i was setting content-length even on redirect

-- 
William

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to