Correct leftover from the fork-based implementation: stdin of the CGI
script must be the socket's input port.
This commit is contained in:
parent
e7aa14ee73
commit
bfab4cc710
|
@ -111,7 +111,7 @@
|
|||
(env (cgi-env req bin-dir (cdr path) request-invariant-cgi-env))
|
||||
|
||||
(doit (lambda ()
|
||||
(dup->inport (current-input-port) 0)
|
||||
(dup->inport (socket:inport (request-socket req)) 0)
|
||||
(dup->outport (current-output-port) 1)
|
||||
(dup 1 2)
|
||||
(apply exec/env filename env argv))))
|
||||
|
@ -199,7 +199,7 @@
|
|||
("PATH_TRANSLATED" . ,path-translated)
|
||||
("SCRIPT_NAME" . ,script-name)
|
||||
|
||||
("REMOTE_HOST" . ,(host-name-or-ip raddr))
|
||||
; ("REMOTE_HOST" . ,(host-name-or-ip raddr))
|
||||
("REMOTE_ADDR" . ,(format-internet-host-address rhost))
|
||||
|
||||
;; ("AUTH_TYPE" . xx) ; Random authentication
|
||||
|
|
Loading…
Reference in New Issue