Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make jshint happy

  • Loading branch information...
commit 5791d28294d49b2f773d0ac4679cb02cc31a597b 1 parent 44d0c12
@igrigorik authored
Showing with 7 additions and 4 deletions.
  1. +1 −1  bin/spdyproxy
  2. +5 −2 lib/server.js
  3. +1 −1  package.json
View
2  bin/spdyproxy
@@ -52,4 +52,4 @@ process.on('uncaughtException', function(e) {
var proxy = new spdyProxy.createServer(opts);
proxy.listen(opts.port);
-console.log("started server");
+console.log("started server");
View
7 lib/server.js
@@ -2,7 +2,6 @@ var spdy = require('spdy'),
http = require('http'),
path = require('path'),
util = require('util'),
- url = require('url'),
net = require('net'),
fs = require('fs');
@@ -98,7 +97,11 @@ var SPDYProxy = function(options) {
);
} else {
- (req.method == 'CONNECT') ? handleSecure(req, res) : handlePlain(req, res);
+ if (req.method == 'CONNECT') {
+ handleSecure(req, res);
+ } else {
+ handlePlain(req, res);
+ }
}
}
View
2  package.json
@@ -22,4 +22,4 @@
"engines": [
"node >= 0.7.0"
]
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.