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

Appcache - Package.headers is undefined #31

Closed Futurama56 closed 9 years ago

Futurama56 commented 9 years ago

I am using the headers.getClientIP() with my app and have enabled appcache. When I enable appcache, the console throws the following error:

TypeError: Package.headers is undefined ...1","referer":"http://localhost:3000/home/jobs","connection":"keep-alive","cache-...

When I disable appcache, the client IP is returned and the code works again.

gadicc commented 9 years ago

Seems like you're the first person using headers and appcache together on Meteor 0.9+, or the first to notice this at least :) Thanks for bringing it to my attention; all fixed; check out v0.0.26.