mirror of https://github.com/python/cpython
realcgitest.py: added import MacOS, it now works again. Removed NetPresenz reference.
cgitest.cgi.rsrc: disable argv emulation; this is essential for the first time the cgi applet starts up
This commit is contained in:
parent
13ff8eb493
commit
158ce4247e
Binary file not shown.
|
@ -2,6 +2,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from MiniAEFrame import AEServer, MiniApplication
|
from MiniAEFrame import AEServer, MiniApplication
|
||||||
|
import MacOS
|
||||||
|
|
||||||
class CGITest(AEServer, MiniApplication):
|
class CGITest(AEServer, MiniApplication):
|
||||||
|
|
||||||
|
@ -23,7 +24,7 @@ class CGITest(AEServer, MiniApplication):
|
||||||
|
|
||||||
def cgihandler(self, pathargs, **args):
|
def cgihandler(self, pathargs, **args):
|
||||||
rv = """HTTP/1.0 200 OK
|
rv = """HTTP/1.0 200 OK
|
||||||
Server: NetPresenz; python-cgi-script
|
Server: Unknown; python-cgi-script
|
||||||
MIME-Version: 1.0
|
MIME-Version: 1.0
|
||||||
Content-type: text/html
|
Content-type: text/html
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue