Skip to content

Commit 73d5d5f

Browse files
authored
No directory listing
1 parent a4528e5 commit 73d5d5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

go/server.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ func handleExactPathRequest(c *gin.Context, info HivePathInfo) {
194194
}
195195

196196
if fileInfo.IsDir() {
197-
handleDirectory(c, filePath)
197+
// handleDirectory(c, filePath)
198+
// Return an empty response for directory requests
199+
c.String(http.StatusOK, "")
198200
} else {
199201
handleSingleFile(c, filePath)
200202
}

0 commit comments

Comments
 (0)