This commit is contained in:
parent
509ae1968b
commit
5f195eec35
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"flag"
|
||||
"fmt"
|
||||
"git.sr.ht/~adnano/go-gemini"
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
"io"
|
||||
"log"
|
||||
|
@ -13,7 +14,6 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"git.sr.ht/~adnano/go-gemini"
|
||||
"git.sr.ht/~adnano/go-gemini/certificate"
|
||||
"github.com/flosch/pongo2/v6"
|
||||
"github.com/gorilla/feeds"
|
||||
|
@ -98,6 +98,7 @@ func processRebuild(ctx context.Context, w gemini.ResponseWriter, r *gemini.Requ
|
|||
}
|
||||
log.Println("REBUILD: success")
|
||||
} else {
|
||||
log.Fatalln(rsp, err)
|
||||
w.WriteHeader(gemini.StatusNotFound, "Out of space")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue