aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar TOW 2019-03-29 06:14:27 -0300
committerLibravatar TOW 2019-03-29 06:14:27 -0300
commit020eeb2441522b312e21e231a52e206010d43e7a (patch)
treec348d15febbafddad46d358599b154768d69ec57 /cgi
parent429433200998613b1c955034f8a90c6ca2864f4c (diff)
downloadweabot-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.py6
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.