From 77205fa709cc39e0c292ca81c4a84364ed1b73af Mon Sep 17 00:00:00 2001 From: Paul LeMarquand Date: Wed, 22 Aug 2012 22:37:14 -0400 Subject: [PATCH] Uppercasing request type as this is what superagent expects --- lib/moviedb.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/moviedb.js b/lib/moviedb.js index a260ad1..096d4a7 100644 --- a/lib/moviedb.js +++ b/lib/moviedb.js @@ -75,6 +75,7 @@ Object.keys(endpoints.methods).forEach(function(method){ var execMethod = function(type, params, endpoint, fn){ params = params || {}; endpoint = endpoint.replace(':id', params.id); + type = type.toUpperCase(); request(type, endpoints.base_url + endpoint) .query({api_key : this.api_key})