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})