diff options
author | TOW | 2019-03-29 06:14:27 -0300 |
---|---|---|
committer | TOW | 2019-03-29 06:14:27 -0300 |
commit | 020eeb2441522b312e21e231a52e206010d43e7a (patch) | |
tree | c348d15febbafddad46d358599b154768d69ec57 /cgi | |
parent | 429433200998613b1c955034f8a90c6ca2864f4c (diff) | |
download | weabot-020eeb2441522b312e21e231a52e206010d43e7a.tar.gz weabot-020eeb2441522b312e21e231a52e206010d43e7a.tar.xz weabot-020eeb2441522b312e21e231a52e206010d43e7a.zip |
Arreglado fallback a CGI en Windows
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/fcgi.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cgi/fcgi.py b/cgi/fcgi.py index 8677679..e59f8c8 100644 --- a/cgi/fcgi.py +++ b/cgi/fcgi.py @@ -987,10 +987,12 @@ class Server(object): isFCGI = True if isFCGI: - sock = socket.fromfd(FCGI_LISTENSOCK_FILENO, socket.AF_INET, - socket.SOCK_STREAM) try: + sock = socket.fromfd(FCGI_LISTENSOCK_FILENO, socket.AF_INET, + socket.SOCK_STREAM) sock.getpeername() + except AttributeError: + isFCGI = False except socket.error, e: if e[0] == errno.ENOTSOCK: # Not a socket, assume CGI context. |