Version of send_head that support CGI scripts
(self)
| 1078 | "Can only POST to CGI scripts") |
| 1079 | |
| 1080 | def send_head(self): |
| 1081 | """Version of send_head that support CGI scripts""" |
| 1082 | if self.is_cgi(): |
| 1083 | return self.run_cgi() |
| 1084 | else: |
| 1085 | return SimpleHTTPRequestHandler.send_head(self) |
| 1086 | |
| 1087 | def is_cgi(self): |
| 1088 | """Test whether self.path corresponds to a CGI script. |