fix minor bugs in send function

...http_result.filecontent