Skip to content

Commit aba9ba5

Browse files
committed
don't serve index.html as index for package tarball
1 parent 91b8fa6 commit aba9ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Distribution/Server/Features/PackageContents.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ packageContentsFeature CoreFeature{ coreResource = CoreResource{
199199
errNotFound "Could not serve package contents" [MText err]
200200
Right (fp, etag, index) ->
201201
serveTarball (display (packageId pkg) ++ " source tarball")
202-
["index.html"] (display (packageId pkg)) fp index
202+
[] (display (packageId pkg)) fp index
203203
[Public, maxAgeDays 30] etag
204204

205205
renderMarkdown :: BS.ByteString -> XHtml.Html

0 commit comments

Comments
 (0)