mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
Remove very broken JSON stuff
This commit is contained in:
+3
-2
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user