mirror of
https://tildegit.org/solderpunk/molly-brown.git
synced 2025-04-13 09:29:46 +00: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
1 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,10 @@ func handleGeminiRequest(conn net.Conn, config Config, logEntries chan LogEntry)
|
|||
conn.Write([]byte("51 Not found!\r\n"))
|
||||
log.Status = 51
|
||||
return
|
||||
} else if err != nil {
|
||||
conn.Write([]byte("40 Temporaray failure!\r\n"))
|
||||
log.Status = 40
|
||||
return
|
||||
}
|
||||
|
||||
// Handle URLS which map to a directory
|
||||
|
|
Loading…
Add table
Reference in a new issue