Fixed bug with URL building when combined with request (npm module)