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

0.6.5 issue: error - 'use' keyword #1

Closed jamesdwilson closed 11 years ago

jamesdwilson commented 11 years ago

this is with 0.6.5 btw.

W20130819-13:37:20.744(-5)? (STDERR) /home/james/.meteor/tools/4010e5731d/lib/nodemodules/fibers/future.js:173 W20130819-13:37:20.745(-5)? (STDERR) throw(ex); W20130819-13:37:20.745(-5)? (STDERR) ^ W20130819-13:37:20.749(-5)? (STDERR) TypeError: Cannot call method 'use' of undefined W20130819-13:37:20.749(-5)? (STDERR) at packages/headers/headers-server.js:4 W20130819-13:37:20.750(-5)? (STDERR) at packages/headers.js:36:4 W20130819-13:37:20.750(-5)? (STDERR) at packages/headers.js:45:3 W20130819-13:37:20.750(-5)? (STDERR) at mains (/home/james/projects/meteor-skeleton/.meteor/local/build/programs/server/boot.js:153:10) W20130819-13:37:20.751(-5)? (STDERR) at Array.forEach (native) W20130819-13:37:20.751(-5)? (STDERR) at Function..each._.forEach (/home/james/.meteor/tools/4010e5731d/lib/node_modules/underscore/underscore.js:79:11) W20130819-13:37:20.751(-5)? (STDERR) at /home/james/projects/meteor-skeleton/.meteor/local/build/programs/server/boot.js:80:5

gadicc commented 11 years ago

Thanks for pointing this out. Should work fine now on 0.6.5 (and below). Please confirm.

Note also the API change, you now use headers.get() or headers.get('name').

jamesdwilson commented 11 years ago

Thanks!

James Wilson

On Mon, Aug 19, 2013 at 3:04 PM, Gadi Cohen notifications@github.comwrote:

Thanks for pointing this out. Should work fine now on 0.6.5 (and below). Please confirm.

Note also the API change, you now use headers.get() or headers.get('name').

— Reply to this email directly or view it on GitHubhttps://github.com/gadicohen/meteor-headers/issues/1#issuecomment-22900021 .

jamesdwilson commented 11 years ago

When you fixed this you forgot to update the doc: "reqHeaders.host, etc."

gadicc commented 11 years ago

Oh, thanks. Pushed this through last thing before bed last night. Corrected :)