Skip to content

Commit

Permalink
Make the root path / return a 204 (normal) status code instead of 404 [
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon authored Jan 11, 2024
1 parent ef87ca0 commit 7fc668d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pmtiles/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,9 @@ func (server *Server) Get(ctx context.Context, path string) (int, map[string]str
return server.get_metadata(ctx, http_headers, key)
}

return 404, http_headers, []byte("Tile not found")
if path == "/" {
return 204, http_headers, []byte{}
}

return 404, http_headers, []byte("Path not found")
}

0 comments on commit 7fc668d

Please sign in to comment.