node-pastec icon indicating copy to clipboard operation
node-pastec copied to clipboard

urlSimilar broken

Open billieblaze opened this issue 8 years ago • 0 comments

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

billieblaze avatar Apr 25 '16 19:04 billieblaze