Commit 8e788388 authored by yamsellem's avatar yamsellem
Browse files

Request accepts method name in lower case

This fix prevent the 'indexOf undefined' that should append.
parent 718a1a8c
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) {