 
   return ret
 
+respondHeader = (req, res, next) =>
+  res.writeHead(200);
+  res.write(HeaderText, "binary")
+  res.end()
+
+
 class InternalDomain
   constructor: (config) ->
     @config = config

httpProxy = require('http-proxy')
passport = require('passport')
MixedStrategy = require('./mixed_strategy')

passport.serializeUser (user, done) ->
  done(null, user.email)

    app.use(passport.initialize())
    app.use(passport.session())
    app.use(@checkDomain())
    app.get('/header', respondHeader)
    app.get('/authproxy/google', @redirect())
    app.get('/authproxy/google/return', @callback())
    app.get('/authproxy/user', ensureAuthed, @getUser())
