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