fix:#56 reorder

This commit is contained in:
Elmar Kresse
2024-10-05 01:07:26 +02:00
parent c85a0edb7c
commit a12f9590f3

View File

@ -41,14 +41,15 @@ func AddFeedRoutes(app model.AppType) {
return c.SendStatus(fiber.StatusGone)
}
if ifNoneMatch == eTag {
return c.SendStatus(fiber.StatusNotModified)
}
if err != nil {
slog.Error("Failed to get feed", "error", err, "token", token)
return c.SendStatus(fiber.StatusNotFound)
}
if ifNoneMatch == eTag && ifNoneMatch != "" {
return c.SendStatus(fiber.StatusNotModified)
}
c.Response().Header.Set("Content-type", "text/calendar")
c.Response().Header.Set("charset", "utf-8")
c.Response().Header.Set("Content-Disposition", "inline")