|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-28 08:36 UTC] pcting at gmail dot com
[2011-01-04 20:17 UTC] fat@php.net
-Status: Open
+Status: Bogus
[2011-01-04 20:17 UTC] fat@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
Description: ------------ The header response on the status page is malformed; the content-type is outputted incorrectly. Test script: --------------- #!/usr/bin/python from StringIO import StringIO from flup.client.fcgi_app import FCGIApp from pprint import pprint import urllib2 def start_response(status, headers): pass if __name__ == '__main__': app = FCGIApp(connect=('localhost', 9000), filterEnviron=False) env = { 'QUERY_STRING': 'html', 'REQUEST_METHOD': 'GET', 'SCRIPT_FILENAME': '/status', 'SCRIPT_NAME': '/status', 'wsgi.input': StringIO(), 'wsgi.errors': StringIO() } result = app(environ=env, start_response=start_response) Expected result: ---------------- X-Powered-By: PHP/5.3.3-1ubuntu9pre1~lucid Content-type: application/jsonrequest {"accepted conn":50,"pool":"www","process manager":"dynamic","idle processes":2,"active processes":0,"total processes":2} Actual result: -------------- X-Powered-By: PHP/5.3.3-1ubuntu9pre1~lucid application/jsonrequest Content-type: text/html {"accepted conn":50,"pool":"www","process manager":"dynamic","idle processes":2,"active processes":0,"total processes":2}