Remove very broken JSON stuff

This commit is contained in:
Kyle Conroy
2012-02-26 22:23:02 -08:00
parent 309888134b
commit 16f7ab8c70
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -7,6 +7,7 @@ httpbin.helpers
This module provides helper functions for httpbin.
"""
import json
from hashlib import md5
from werkzeug.http import parse_authorization_header
@@ -95,9 +96,9 @@ def get_dict(*keys, **extras):
form = nonflat_dict
try:
json = json.loads(request.data)
json_input = json.loads(request.data)
except ValueError:
json = None
json_input = None
d = dict(
+2 -1
View File
@@ -12,5 +12,6 @@ except (IndexError, ValueError):
port = 5000
print 'Starting httpbin on port {0}'.format(port)
app.debug = True
http_server = WSGIServer(('', port), app)
http_server.serve_forever()
http_server.serve_forever()