Changeset 2432
- Timestamp:
- 07/09/07 10:35:01 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tracforgeplugin/branches/bewst/0.11-clearsilver/tracforge/admin/dispatch.py
r2381 r2432 77 77 # the original stream has already been read once. 78 78 if environ['wsgi.input']: 79 data = urllib.urlencode(req.args) 79 args = {} 80 for k,v in req.args.iteritems(): 81 if isinstance(v, unicode): 82 v = v.encode('utf-8') 83 args[k] = v 84 data = urllib.urlencode(args) 80 85 class InputStream: 81 86 def __init__(self, data): … … 87 92 88 93 environ['wsgi.input'] = InputStream(data) 94 # This doesn't match up sometimes. Don't know why yet. 95 environ['CONTENT_LENGTH'] = len(data) 89 96 90 97 req._response = dispatch_request(environ, start_response)
