Permalink
Browse files

log connection type before request

  • Loading branch information...
1 parent bbfe1e8 commit 3269024588d2a107037288036784cd637c713541 @igrigorik committed Jun 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/server.js
View
@@ -81,15 +81,15 @@ var SPDYProxy = function(options) {
}
function handleRequest(req, res) {
- if (options.verbose) logRequest(req);
-
var socket = (req.method == 'CONNECT') ? res : res.socket;
console.log("%s:%s".yellow + " - %s - " + "stream ID: " + "%s".yellow,
socket.connection.socket.remoteAddress,
socket.connection.socket.remotePort,
req.method, res.streamID || socket.streamID
);
+ if (options.verbose) logRequest(req);
+
if (options.user) {
// perform basic proxy auth (over established SSL tunnel)
// - http://www.chromium.org/spdy/spdy-authentication

0 comments on commit 3269024

Please sign in to comment.