@ossiana/node-libcurl 1.1.2-alpha-2 → 1.1.2-alpha-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossiana/node-libcurl",
3
- "version": "1.1.2-alpha-2",
3
+ "version": "1.1.2-alpha-3",
4
4
  "dependencies": {
5
5
  "@mapbox/node-pre-gyp": "^1.0.10",
6
6
  "bindings": "^1.5.0",
@@ -311,7 +311,7 @@ const char *BaoCurl::getLastCurlCodeError()
311
311
  curl_off_t BaoCurl::getResponseContentLength()
312
312
  {
313
313
  curl_off_t size;
314
- CHECK_CURLOK(curl_easy_getinfo(this->m_pCURL, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &size));
314
+ CHECK_CURLOK(curl_easy_getinfo(this->m_pCURL, CURLINFO_SIZE_DOWNLOAD_T, &size));
315
315
  return size;
316
316
  }
317
317
 
@@ -268,7 +268,6 @@ Napi::Value BaoLibCurlWarp::getResponseContentLength(const Napi::CallbackInfo &i
268
268
  {
269
269
  Napi::Env env = info.Env();
270
270
  // size_t argsLen = info.Length();
271
-
272
271
  return Napi::Number::New(env, this->m_curl.getResponseContentLength());
273
272
  }
274
273