Commit f949fa41 authored by tyabonil's avatar tyabonil
Browse files

Merge pull request #9 from yamsellem/patch-1

Request accepts method name in lower case
parents 718a1a8c 8e788388
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ function rp(options) {
        }
    }
    c.method = c.method || 'GET';
    c.method = c.method.toUpperCase();
    return new Promise(function (resolve, reject) {
        request(c, function (error, response, body) {
            if (error) {