From a732845db352bcaa75f49e83f494937c2b3496ed Mon Sep 17 00:00:00 2001 From: skilion Date: Sun, 6 Sep 2015 10:07:18 +0200 Subject: [PATCH] renamed check to checkHttpCode --- src/onedrive.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/onedrive.d b/src/onedrive.d index 615cd905..8f2737ea 100644 --- a/src/onedrive.d +++ b/src/onedrive.d @@ -135,7 +135,7 @@ final class OneDriveApi }; writeln("Obtaining the url ..."); http.perform(); - check(); + checkHttpCode(); http.maxRedirects = 10; if (downloadUrl) { // try to download the file @@ -174,7 +174,7 @@ final class OneDriveApi upload(localPath, url, http); // remove the if-match header if (eTag) setAccessToken(accessToken); - check(); + checkHttpCode(); return parseJSON(content); } @@ -245,7 +245,7 @@ final class OneDriveApi return parseJSON(.post(url, postData, http)); } - private void check() + private void checkHttpCode() { if (http.statusLine.code / 100 != 2) { throw new OneDriveException(format("HTTP request returned status code %d (%s)", http.statusLine.code, http.statusLine.reason));