Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Nov 23, 2023
1 parent 601c127 commit cf98aad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="keywords" content="Game Engine, WebAssembly, C++, SDL, Lua, Carimbo">
<meta name="author" content="Rodrigo Delduca">
<base href="{{ .BaseURL }}" />
<link rel="icon" href="favicon.ico" />
<link rel="icon" href="favicon.svg" type="image/svg+xml" sizes="any">
<link rel="preload" href="bundle.7z" as="fetch" type="application/octet-stream" crossorigin />
<link rel="preload" href="carimbo.wasm" as="fetch" type="application/wasm" crossorigin />
<script defer src="carimbo.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func indexHandler(c echo.Context) error {
func favIconHandler(c echo.Context) error {
c.Response().Header().Set("Cache-Control", "public, max-age=31536000, s-maxage=31536000")
c.Response().Header().Set("Expires", time.Now().AddDate(1, 0, 0).Format(http.TimeFormat))
return c.Blob(http.StatusOK, "image/x-icon", []byte{})
return c.Blob(http.StatusOK, "image/svg+xml", []byte{})
}

func javaScriptHandler(c echo.Context) error {
Expand Down Expand Up @@ -335,7 +335,7 @@ func main() {
e.GET("/:runtime/:org/:repo/:release/:format/carimbo.js", javaScriptHandler)
e.GET("/:runtime/:org/:repo/:release/:format/carimbo.wasm", webAssemblyHandler)
e.GET("/:runtime/:org/:repo/:release/:format/bundle.7z", bundleHandler)
e.GET("/:runtime/:org/:repo/:release/:format/favicon.ico", favIconHandler)
e.GET("/:runtime/:org/:repo/:release/:format/favicon.svg", favIconHandler)
e.GET("/:runtime/:org/:repo/:release/:format/assets/*", assetsHandler(assets))

e.Logger.Fatal(e.Start(fmt.Sprintf(":%s", os.Getenv("PORT"))))
Expand Down

0 comments on commit cf98aad

Please sign in to comment.