mirror of
https://tildegit.org/solderpunk/molly-brown
synced 2024-05-28 14:26:02 +02:00
Do not crash if os.Stat returns an error other than not found or no permission, which seems to mysteriously happen sometimes...
This commit is contained in:
parent
5fdb3622e9
commit
9c51f26d74
|
@ -94,6 +94,10 @@ func handleGeminiRequest(conn net.Conn, config Config, logEntries chan LogEntry)
|
||||||
conn.Write([]byte("51 Not found!\r\n"))
|
conn.Write([]byte("51 Not found!\r\n"))
|
||||||
log.Status = 51
|
log.Status = 51
|
||||||
return
|
return
|
||||||
|
} else if err != nil {
|
||||||
|
conn.Write([]byte("40 Temporaray failure!\r\n"))
|
||||||
|
log.Status = 40
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle URLS which map to a directory
|
// Handle URLS which map to a directory
|
||||||
|
|
Loading…
Reference in New Issue