Skip to content

Commit

Permalink
No directory listing
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Sep 24, 2024
1 parent a4528e5 commit 73d5d5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ func handleExactPathRequest(c *gin.Context, info HivePathInfo) {
}

if fileInfo.IsDir() {
handleDirectory(c, filePath)
// handleDirectory(c, filePath)
// Return an empty response for directory requests
c.String(http.StatusOK, "")
} else {
handleSingleFile(c, filePath)
}
Expand Down

0 comments on commit 73d5d5f

Please sign in to comment.