summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-03-17 01:01:22 +0100
committertv <tv@nomic.retiolum>2014-03-17 01:01:22 +0100
commita857b628b5a6d9e4e6e5d0f0192ab6f657afaffb (patch)
tree3d5898f41d2ca8ff65315ff38522a609138ab189 /news
parentdba1f1d1be5d4e0a91b0b575d35e04e4722e21df (diff)
newsbot.js: s/res/response/
Diffstat (limited to 'news')
-rw-r--r--news/newsbot.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/news/newsbot.js b/news/newsbot.js
index 683bf39a..998482cd 100644
--- a/news/newsbot.js
+++ b/news/newsbot.js
@@ -105,15 +105,15 @@ function create_feedbot (nick, uri, channels) {
if (response.statusCode !== 200) {
return this.emit('error', new Error('Bad status code'))
}
- var output = res
- switch (res.headers['content-encoding']) {
+ var output = response
+ switch (response.headers['content-encoding']) {
case 'gzip':
output = zlib.createGunzip()
- res.pipe(output)
+ response.pipe(output)
break
case 'deflate':
output = zlib.createInflate()
- res.pipe(output)
+ response.pipe(output)
break
}
this.pipe(feedparser)