TooTallNate / node-cgi

An http/stack/connect layer to invoke and serve CGI executables.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't return response

ryotakato opened this issue · comments

commented

Hello

This Module is what I wanted.
I tried to run sample script what is written at README.md. (but changed port number from 80 to 3000.)
And access to http://localhost:3000/ on browser.
I expected that "Hello World!" are displayed. But, cannot return response.

I tried little debug.
I confirmed that cgiSpawn exit event is fired. ( at line 130 in "cgi.js" )
I do not know any more.

My environment is

  • Node.js v0.8.15
  • Mac OS X 10.7.5

@ryotakato Hey there, thanks for the report! So I looked into it and it looks like there's a bug in that README example. In the example, it's assumed that hello.cgi is actually in the $PATH of the server, rather than assuming it is a relative file path. I've updated the README example to use an appropriate absolute path for the cgi script which makes things work as expected.

I've also given this module a little love and did a v0.1.0 release. So be sure to use that new version! Cheers!

commented

Thank you for your very fast comit !!
It works very well !!
I will cheer your project !