Mercurial > hg > CAPTCHAmiddleware
diff captchamiddleware/example.py @ 2:c861518b2a44
fix bug whereby forbidden characters cause issues
author | k0s <k0scist@gmail.com> |
---|---|
date | Tue, 23 Feb 2010 19:50:23 -0500 |
parents | 21ec6325ae0e |
children | ce757057961c |
line wrap: on
line diff
--- a/captchamiddleware/example.py Sat Feb 06 19:00:32 2010 -0500 +++ b/captchamiddleware/example.py Tue Feb 23 19:50:23 2010 -0500 @@ -3,7 +3,7 @@ from paste.httpexceptions import HTTPExceptionHandler def example_app(environ, start_response): - return Response('<html><body><form method="post">Hello, world!<input type="submit"/></form></body></html>')(environ, start_response) + return Response('<html><body><p>method=%s</p><form method="post">Hello, world!<input type="submit"/></form></body></html>' % environ['REQUEST_METHOD'])(environ, start_response) def factory(global_conf, **app_conf):