server stops when a CGI script does not write any header or content #38
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I had a bug in a CGI php script where it would not write any content and just close and that makes the server stop with an array index error
You can show this with a empty cgi script, e.g. like this
bug.cgi:
I fixed that by adding a check for empty header, you can probably do it easier, my Go knowledge is not very good yet
server stops when a CGI script does not write any contentto server stops when a CGI script does not write any header or contentAh, thanks for catching this, I'll try to put together a fix soon. Sorry, the CGI support is still in a pretty poor state, as you're noticing, but it's improving...
Actually that is quite interesting, it gives me a chance to look at how Go works which I have not done at all before
Using a feature that is not often used sometimes has this effect, this is the first time I used CGI for anything except printenv at all and it is the first time I use it in PHP
This is fixed now, thanks again for the report!