node-pastec
node-pastec copied to clipboard
urlSimilar broken
It looks like internally, the function uses a variable called "url" which overrides the main global with the same name. That means if i pass a web URL for an image, it will try to post back to that same url. I did the following and it seems to work:
urlSimilar: function(thisURL, callback) { request.get(thisURL) .pipe(request.post(url + "searcher", handle("SEARCH_RESULTS", processResults(callback)))); },