Fix outgoing bytes calculation in HTTP server