maxigimenez/request — pull request #1 by homer0 (2014-10-13 15:56:40+00:00)
Title: Avoid duplicated query string parameters

It adds the `verifyQuery` utility, which will prevent duplicated query string parameters on `GET` requests.

```Javascript
utils.verifyQuery = function(url,query){
var result = {},
parameter = null;
for(parameter in query){
if(!(new RegExp('[?|&]'+parameter+'=')).test(url)){
result[parameter] = query[parameter];
}
}
return result;
};
```
I also modified some parts to validate with JSHint.