httpd: fixed a potentialy illimited memory consumption on http upload