summaryrefslogtreecommitdiffstats
path: root/Lib/CGIHTTPServer.py
Commit message (Collapse)AuthorAgeFilesLines
* An honest attempt to make this work on Unix, Windows, and evenGuido van Rossum2000-09-191-81/+173
| | | | | | Macintosh (the latter untested). This closes Bug #110839.
* Now that StreamRequestHandler defaults rfile to buffered, make itGuido van Rossum2000-09-011-0/+4
| | | | | | unbuffered (by setting the class variable rbufsize to 0), because we (may) need to pass the file descriptor to the subprocess running the CGI script positioned after the headers.
* os.fork raises AttributeError, not NameError, if fork() isn'tFred Drake1999-10-181-1/+1
| | | | supported. Pointed out by Moshe Zadka <moshez@math.huji.ac.il>.
* Based on comments from Paul Prescod:Fred Drake1999-10-161-2/+11
| | | | | If os.fork() doesn't exist, raise SystemError with an explanation at the top of the module. Added a note to the module docstring.
* No need to import sys, time, or socket. (Andrew Dalke & kjpylint)Guido van Rossum1999-05-031-3/+0
|
* Two changes suggested by Jan Pieter Riegel:Guido van Rossum1999-04-281-1/+4
| | | | | | | | (1) Fix reference to pwd.error to be KeyError -- there is no pwd.error and pwd.getpwnam() raises KeyError on failure. (2) Add cookie support, by placing the 'Cookie:' header, if present, in the HTTP_COOKIE environment variable.
* Patch by Jeff Rush:Guido van Rossum1998-12-071-1/+1
| | | | | | | | | In CGIHTTPServer.py, the list of acceptable formats is -split- on spaces but -joined- on commas, resulting in double commas in the joined text. It appears harmless to my browser but ought to be fixed anyway. 'A, B, C' -> 'A,', 'B,', 'C,' -> 'A,,B,,C'
* From: conrad@cgl.ucsf.edu (Conrad Huang %CGL)Guido van Rossum1998-05-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | To: python-list@cwi.nl Date: 13 May 98 18:33:11 GMT I think I found a bug in CGIHTTPServer.py. (Does anyone care? :-) I was trying to use it as the web server for uploading files. Python CGI scripts (using the CGI module) that worked for other servers (e.g., Netscape Enterprise server) hang when run from CGIHTTPServer. The problem is that the content type parameters, in particular the boundary parameter, were not passed through to the CGI scripts, thus making the MIME parsing code choke. My simple-minded fix is: % diff CGIHTTPServer.py /usr/local/lib/python1.5/CGIHTTPServer.py 137,140c136 < if self.headers.typeheader is None: < env['CONTENT_TYPE'] = self.headers.type < else: < env['CONTENT_TYPE'] = self.headers.typeheader --- > env['CONTENT_TYPE'] = self.headers.type Conrad
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-122/+122
|
* Use string.replace instead of regsub.[g]sub.Guido van Rossum1997-12-241-2/+1
|
* Remove some bogus code that would cause a NameError if a -r option was passed.Guido van Rossum1997-02-191-5/+0
|
* real test for executable scriptGuido van Rossum1996-01-251-1/+1
|
* changed some commas into percent signsGuido van Rossum1995-08-291-4/+4
|
* Initial revisionGuido van Rossum1995-08-041-0/+203