Uppercasing request type as this is what superagent expects

This commit is contained in:
Paul LeMarquand
2012-08-22 22:37:14 -04:00
parent 3db848fdef
commit 77205fa709

View File

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