commit e57af5af8713e82f2e9af2461152e2cb4e94db6a
parent 4613e4b32b082b0a133321db1c76ae97072582f5
Author: cfillion <cfillion@users.noreply.github.com>
Date: Wed, 10 Aug 2016 15:49:48 -0400
download: remove trailing \r from HTTP error messages
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/download.cpp b/src/download.cpp
@@ -158,7 +158,7 @@ DWORD WINAPI Download::Worker(void *ptr)
}
default:
// strip body, only keep error description
- contents.erase(contents.find("\n"));
+ contents.erase(contents.find("\r"));
contents.erase(0, contents.find("\x20") + 1);
download->finish(Failure, contents);