From 62a0bb749ba09633048231b490cf05a0ee861c88 Mon Sep 17 00:00:00 2001 From: Rui Carmo Date: Tue, 3 May 2016 19:51:56 +0100 Subject: [PATCH] Dump request values --- examples/python/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/python/main.py b/examples/python/main.py index 768a30b..2da81fb 100644 --- a/examples/python/main.py +++ b/examples/python/main.py @@ -1,5 +1,5 @@ import os -from bottle import app, get +from bottle import app, get, request app = app() @@ -8,6 +8,9 @@ def default(): table = [''] for k, v in os.environ.iteritems(): table.append('' % (k, v)) + table.append('
%s%s
') + for k, v in request.environ.iteritems(): + table.append('' % (k, v)) table.append('
%s%s
') return '\n'.join(table)