Open valichek opened 8 years ago
can you provide reproduce procedures?
Sure. First, run php-fpm. It is simple with docker.
docker run --name some-test -p 9000:9000 php:fpm
Then you just connect to it (php-fpm should be running on 9000
port of docker host) and send some request to the script that doen't exist
env["SCRIPT_FILENAME"] = "/path/to/not-existing.php"
php-fpm should reply with message that contains Primary script unknown
at first line
Now we get
malformed MIME header line: Primary script unknown
error on response like:It's not obvious how to handle it, now we can just search for
Primary script unknown
and manually createhttp.Response
with 404.The response is "almost" valid. Would be nice to get normal http response with 404 status from fcgiclient.