gadicc / meteor-headers

Access HTTP headers on both server and client. Client IP with proxy support.
https://atmospherejs.com/gadicohen/headers
GNU Lesser General Public License v3.0
61 stars 21 forks source link

Won't work with server side routes of Iron Router #41

Open romaroma opened 9 years ago

romaroma commented 9 years ago

The package won't work with server side routes because checkSelf relies on self.connection which is undefined for server only routes.

In this case headers could be read from this.request.headers and used later in getClientIP, get and other methods.