Marcin Lulek  committed 864c004

add sleep to basic auth

  • Participants
  • Parent commits 596ddc0
  • Branches default

Comments (0)

Files changed (1)

File gevent_cometd/

 import urllib2
 import logging
 import base64
+import gevent
 import as channel
 import gevent_cometd.user as user
 from webob import Request, Response, exc
         res.status = 400
     if res and request.authorization and config['secret']:
         secret = base64.b64decode(request.authorization[1])[1]
+        gevent.sleep(1)
         if secret == config['secret']:
             # resets the response so endpoint will let us in
             res = None