Commits

Marcin Lulek  committed 864c004

add sleep to basic auth

  • Participants
  • Parent commits 596ddc0

Comments (0)

Files changed (1)

File gevent_cometd/util.py

 import urllib2
 import logging
 import base64
+import gevent
 import gevent_cometd.channel 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