Rename effective_options to effectiveOptions.

This commit is contained in:
Miao Jiang 2012-12-01 21:39:13 +08:00
parent e37f47a072
commit b273758a40

View file

@ -19,7 +19,7 @@ url2 = 'www.google.com';
options2 = {FOLLOWLOCATION: 1}; options2 = {FOLLOWLOCATION: 1};
console.info("GET " + url + " with default options " + JSON.stringify(curl2.defaultOptions) + ' and options ' + JSON.stringify(options2)); console.info("GET " + url + " with default options " + JSON.stringify(curl2.defaultOptions) + ' and options ' + JSON.stringify(options2));
curl2(url2, options2, function(err) { curl2(url2, options2, function(err) {
console.info("\x1b[32mGet " + this.url + " with " + JSON.stringify(this.effective_options) + " finished.\x1b[0m"); console.info("\x1b[32mGet " + this.url + " with " + JSON.stringify(this.effectiveOptions) + " finished.\x1b[0m");
console.info("\tstatus: " + this.status); console.info("\tstatus: " + this.status);
console.info("\tbody length: " + this.body.length); console.info("\tbody length: " + this.body.length);
console.info("\tinfo SIZE_DOWNLOAD: " + this.info('SIZE_DOWNLOAD')); console.info("\tinfo SIZE_DOWNLOAD: " + this.info('SIZE_DOWNLOAD'));