Add missing return, fixes #4.

This commit is contained in:
Solderpunk 2020-06-13 09:08:04 +02:00
parent 15863eb253
commit 30a5369f8a
1 changed files with 1 additions and 0 deletions

View File

@ -353,6 +353,7 @@ func serveFile(path string, log *LogEntry, conn net.Conn, config Config) {
if err != nil {
conn.Write([]byte("50 Error!\r\n"))
log.Status = 50
return
}
conn.Write([]byte(fmt.Sprintf("20 %s\r\n", mimeType)))
log.Status = 20