sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
p = a.rfind(":")
if p < 0:
- bindhost = "hostname"
+ bindhost = "localhost"
bindport = int(a)
else:
bindhost = a[:p]
if not hasattr(handlermod, "wmain"):
sys.stderr.write("scgi-wsgi: handler %s has no `wmain' function\n" % args[0])
sys.exit(1)
- handler = handlermod.wmain(args[1:])
+ handler = handlermod.wmain(*args[1:])
else:
if not hasattr(handlermod, "application"):
sys.stderr.write("scgi-wsgi: handler %s has no `application' object\n" % args[0])