Skip to content

Commit

Permalink
Fix bug for CGI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Quentel committed Jun 12, 2017
1 parent 7141799 commit 9b6fc43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def send_head(self):
and must be closed by the caller under all circumstances), or
None, in which case the caller has nothing further to do.
"""
if self.is_cgi():
return self.run_cgi()

path = self.translate_path(self.path)
f = None
if os.path.isdir(path):
Expand Down

0 comments on commit 9b6fc43

Please sign in to comment.