summaryrefslogtreecommitdiff
path: root/lib/_http_agent.js
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-07-24 18:03:53 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-07-24 21:49:35 +0200
commit0330bdf5195eb77f04c26a09a8bd2088a261fe53 (patch)
tree2c13f9f1757bca93e83e425a028dcae78549f40e /lib/_http_agent.js
parent457d52924152c6f2baf2fddbe76a03bca7bdde7c (diff)
downloadandroid-node-v8-0330bdf5195eb77f04c26a09a8bd2088a261fe53.tar.gz
android-node-v8-0330bdf5195eb77f04c26a09a8bd2088a261fe53.tar.bz2
android-node-v8-0330bdf5195eb77f04c26a09a8bd2088a261fe53.zip
lib: macro-ify type checks
Increases the grep factor. Makes it easier to harmonize type checks across the code base.
Diffstat (limited to 'lib/_http_agent.js')
-rw-r--r--lib/_http_agent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_http_agent.js b/lib/_http_agent.js
index 07e8f4c557..500ddb057a 100644
--- a/lib/_http_agent.js
+++ b/lib/_http_agent.js
@@ -246,7 +246,7 @@ Agent.prototype.destroy = function() {
};
Agent.prototype.request = function(options, cb) {
- if (typeof options === 'string') {
+ if (IS_STRING(options)) {
options = url.parse(options);
}
// don't try to do dns lookups of foo.com:8080, just foo.com