Maybe we'll have to investigate it more some time, but for now I think we are ok, it's working as expected except the content-length canno be reported because we get the compressed size after the gzip writer.Write and we can't send headers after its underline writer which is the ResponseWriter, a solution for that is to use a temp bytes.Buffer but this will slow down the performance, users who need to know the size can use a temp writer instead for theirselves.
Former-commit-id: a4400ca5db526998a646fd5880ca67358fa72c0f