Allow non trailing slash API calls

This commit is contained in:
Ruud committed 2013-06-23 23:28:13 +02:00
1 parent 74c984dec3
commit 374f8ba1de
4 files changed
+11 -20

No files matched your search

-11
View File
@@ -38,14 +38,3 @@ def requires_auth(handler_class):
handler_class._execute = wrap_execute(handler_class._execute)
return handler_class
# @wraps(f)
# def decorated(*args, **kwargs):
# auth = getattr(request, 'authorization')
# if Env.setting('username') and Env.setting('password'):
# if (not auth or not check_auth(auth.username.decode('latin1'), md5(auth.password.decode('latin1').encode(Env.get('encoding'))))):
# return authenticate()
#
# return f(*args, **kwargs)
#
# return decorated