Closed lucazulian closed 9 years ago
Seems reasonable. I'll add the following line as suggested. Spiderable.originalRequest = req;
Note, I prefer fully spelled out variables (originalRequest), so that's what I used. Also, I updated the Readme.md to match.
It is published to meteor as v1.1.3 Update using meteor update jazeee:spiderable-longer-timeout
I'm using Spiderable with Phantomjs and I need the original request object in order to fetch header properties (in my case I need accept-language header). We could achieve this and allow Meteor to use that property by modifying the spiderable_server.js file in this way:
In this way I can use
Spiderable.originalReq
to read from Meteor the original request headers. Did that all make sense? :) Let me know if you want me to submit a pull request.