Fix header response on file upload

Fix parsing of response headers to first split on return then on colon.