1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2025-10-24 17:27:35 +02:00

Added Delete Account feature (no dev backend support yet) - fix

This commit is contained in:
Dario Chiappetta
2015-04-14 10:44:23 +02:00
parent 00ab234ed8
commit e2781071d0
10 changed files with 208 additions and 33 deletions

View File

@@ -37,7 +37,11 @@ class ClipperzTestSite(server.Site):
uri = request.uri
uri = uri.split("?", 1)[0]
uri = uri.split("#", 1)[0]
if uri.startswith('/json') or uri.startswith('/dump'):
if uri == '/':
# This serves the message, but also throws an exception; can't understand why...
result = static.Data('<html>In production you would now be on https://clipperz.is/</html>', 'text/html')
elif uri.startswith('/json') or uri.startswith('/dump'):
resource.prepath = ['app']
result = resource.getChildForRequest(self.resource, request)
elif uri.startswith('/payment'):
@@ -116,7 +120,6 @@ class ClipperzTestSite(server.Site):
# print("RESULT\n" + str(result))
return result
def main ():
# site = ClipperzTestSite(proxy.ReverseProxyResource('localhost', 8084, '/java-backend'))
site = ClipperzTestSite(proxy.ReverseProxyResource('localhost', 8084, '/app'))