Check if mime type is text/gemini
This commit is contained in:
parent
db05f5b473
commit
ecf993bcc0
3
main.go
3
main.go
|
@ -115,6 +115,9 @@ func main() {
|
|||
if resp.Status.Class() != gemini.StatusSuccess {
|
||||
log.Fatalf("%d %s", resp.Status, resp.Meta)
|
||||
}
|
||||
if resp.Meta != "text/gemini" && !strings.HasPrefix(resp.Meta, "text/gemini;") {
|
||||
log.Fatal("mime type is not text/gemini")
|
||||
}
|
||||
aw := AtomWriter{
|
||||
Title: "",
|
||||
Items: nil,
|
||||
|
|
Loading…
Reference in New Issue