Permalink
Browse files

Merge pull request #224 from kevinsawicki/master

Set User-Agent header on translate calls
  • Loading branch information...
atmos committed Jan 10, 2012
2 parents 3093e4d + 3a9883c commit 4ab6bb78c78b7a2f795ad6d33b03aad57d7720e1
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/scripts/translate.coffee
@@ -83,6 +83,7 @@ module.exports = (robot) ->
uptl: "en"
text: term
})
+ .header('User-Agent', 'Mozilla/5.0')
.get() (err, res, body) ->
data = body
if data.length > 4 && data[0] == '['

0 comments on commit 4ab6bb7

Please sign in to comment.