bugfix httpresponse content length skipped when empty