forked from solderpunk/molly-brown
Add missing return, fixes #4.
This commit is contained in:
parent
15863eb253
commit
30a5369f8a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user