fixes #9 compatible with old version libcurl.
This commit is contained in:
parent
6f9d7e24fa
commit
9fe5666c9f
1 changed files with 16 additions and 7 deletions
|
@ -398,13 +398,22 @@ class NodeCurl
|
|||
|
||||
#define X(name) {#name, CURLOPT_##name}
|
||||
CurlOption slist_options[] = {
|
||||
#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(HTTP200ALIASES),
|
||||
X(MAIL_RCPT),
|
||||
X(QUOTE),
|
||||
X(POSTQUOTE),
|
||||
X(PREQUOTE),
|
||||
X(RESOLVE),
|
||||
X(TELNETOPTIONS)
|
||||
};
|
||||
#undef X
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue