jiangmiao / node-curl

node curl wrapper with fully implemented
https://npmjs.org/package/node-curl
MIT License
184 stars 28 forks source link

segfault on 64-bit #29

Open briancsparks opened 10 years ago

briancsparks commented 10 years ago

Per the instructions on the libcurl site: you must pass a pointer to a long (not an int) when calling curl_easy_getinfo() with a numeric option (like RESPONSE_CODE).

Line 280 of node-curl.h uses "int" as the CType template parameter, when it should be a "long".

Changing this line and re-compiling fixes the issue for me.