rest: Rework handling HTTP2 zero-length replies bug
rest: Rework handling HTTP2 zero-length replies bug

Add comment that the check is based on the stdlib HTTP2 client. Refactor
the checks into a function. Return an error if the value in the
Content-Length header cannot be parsed.

restic/restic,restic/restic