fixes #9 compatible with old version libcurl.

This commit is contained in:
Miao Jiang 2012-11-29 16:35:30 +08:00
parent 6f9d7e24fa
commit 9fe5666c9f

View file

@ -398,13 +398,22 @@ class NodeCurl
#define X(name) {#name, CURLOPT_##name}
CurlOption slist_options[] = {
X(HTTPHEADER),
#if LIBCURL_VERSION_NUM >= 0x070a03
X(HTTP200ALIASES),
#endif
#if LIBCURL_VERSION_NUM >= 0x071400
X(MAIL_RCPT),
#endif
#if LIBCURL_VERSION_NUM >= 0x071503
X(RESOLVE),
#endif
X(HTTPHEADER),
X(QUOTE),
X(POSTQUOTE),
X(PREQUOTE),
X(RESOLVE),
X(TELNETOPTIONS)
};
#undef X