diff --git a/src/generate_curl_options_list.sh b/src/generate_curl_options_list.sh index 616e4dd..c1a84c4 100755 --- a/src/generate_curl_options_list.sh +++ b/src/generate_curl_options_list.sh @@ -30,7 +30,7 @@ generate() { ) > $root/$name.h } generate integer_options 'CINIT\((\w+).*LONG' OPT -generate string_options 'CINIT\((\w+).*OBJECT' OPT +generate string_options 'CINIT\((\w+).*(STRINGPOINT|OBJECT)' OPT generate integer_infos 'CURLINFO_(\w+).*LONG' INFO generate string_infos 'CURLINFO_(\w+).*STRING' INFO diff --git a/src/node-curl.h b/src/node-curl.h index 175e492..7fbecfd 100644 --- a/src/node-curl.h +++ b/src/node-curl.h @@ -81,7 +81,7 @@ class NodeCurlHttppost last->contenttype = value; break; case FILE: - last->flags |= HTTPPOST_FILENAME; + last->flags |= CURL_HTTPPOST_FILENAME; case CONTENTS: last->contents = value; last->contentslength = length;