enyo / node-tvdb

A node library for thetvdb.com
26 stars 12 forks source link

Changing res.getHeader to res.headers #4

Closed lobbin closed 11 years ago

lobbin commented 11 years ago

Can't find any references to getHeader being used on the client side. This commit changes to use the headers object and in the same time also handlers headers, such as "text/xml; charset=utf8"

halkeye commented 11 years ago

+1 This fixes the library for me

Without it I get: TypeError: Object # has no method 'getHeader'

Node v0.8.19

ocombe commented 11 years ago

The master lib/index.js file for version 0.0.12 (from npm) still has getHeader in it... https://github.com/enyo/node-tvdb/blob/master/lib/index.js

ocombe commented 11 years ago

Ok i fixed my problem by adding the script

"postinstall": "coffee --output ./node_modules/tvdb/lib --compile ./node_modules/tvdb/src"

to my package.json

enyo commented 11 years ago

Thanks @ocombe . Fixed now.

ocombe commented 11 years ago

thanks for the fix :)