From 31fab1262f17367aba229da2eea8e47e811d50e4 Mon Sep 17 00:00:00 2001 From: Evan Meagher Date: Sun, 15 May 2011 14:56:54 -0700 Subject: [PATCH] Fix erroneous variable name in example code. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 827a71c..ef96fcf 100644 --- a/README.md +++ b/README.md @@ -82,8 +82,8 @@ As of v0.3.1, dropbox-node exposes a method `getFileStream` that allows stream-b , write_stream = require('fs').createWriteStream("out") request.on('response', function (response) { - res.on('data', function (chunk) { write_stream.write(chunk) }) - res.on('end', function () { write_stream.end() }) + response.on('data', function (chunk) { write_stream.write(chunk) }) + response.on('end', function () { write_stream.end() }) }) request.end()