Fixed bug where compression would be initiated before any body was written, causing bodyless requests to panic.