forked from solderpunk/molly-brown
Close stdin of CGI process after sending URL.
This commit is contained in:
parent
0b4fefd0ba
commit
40ad09f9bc
|
@ -137,6 +137,7 @@ func handleGeminiRequest(conn net.Conn, config Config, logEntries chan LogEntry)
|
|||
defer stdin.Close()
|
||||
io.WriteString(stdin, URL.String())
|
||||
io.WriteString(stdin, "\r\n")
|
||||
stdin.Close()
|
||||
out, err := cmd.Output()
|
||||
if ctx.Err() == context.DeadlineExceeded {
|
||||
conn.Write([]byte("42 CGI process timed out!\r\n"))
|
||||
|
|
Loading…
Reference in New Issue