If the context of request is closed before ReverseProxy finishing writing a huge response body to the response writer, the client will only receive a truncated response body. To solve this, move the context cancel after ReverseProxy finished.