##// END OF EJS Templates
hgweb: remove support for POST form data (BC)...
Gregory Szorc -
r36874:01f6bba6 default
parent child Browse files
Show More
@@ -8,7 +8,6 b''
8
8
9 from __future__ import absolute_import
9 from __future__ import absolute_import
10
10
11 import cgi
12 import errno
11 import errno
13 import socket
12 import socket
14 import wsgiref.headers as wsgiheaders
13 import wsgiref.headers as wsgiheaders
@@ -258,15 +257,12 b' class wsgirequest(object):'
258 self.multiprocess = wsgienv[r'wsgi.multiprocess']
257 self.multiprocess = wsgienv[r'wsgi.multiprocess']
259 self.run_once = wsgienv[r'wsgi.run_once']
258 self.run_once = wsgienv[r'wsgi.run_once']
260 self.env = wsgienv
259 self.env = wsgienv
261 self.form = normalize(cgi.parse(inp,
260 self.req = parserequestfromenv(wsgienv, inp)
262 self.env,
261 self.form = normalize(self.req.querystringdict)
263 keep_blank_values=1))
264 self._start_response = start_response
262 self._start_response = start_response
265 self.server_write = None
263 self.server_write = None
266 self.headers = []
264 self.headers = []
267
265
268 self.req = parserequestfromenv(wsgienv, inp)
269
270 def respond(self, status, type, filename=None, body=None):
266 def respond(self, status, type, filename=None, body=None):
271 if not isinstance(type, str):
267 if not isinstance(type, str):
272 type = pycompat.sysstr(type)
268 type = pycompat.sysstr(type)
General Comments 0
You need to be logged in to leave comments. Login now