Skip to content

Commit 2ea8719

Browse files
author
OpenShift Bot
authored
Merge pull request #12644 from jwforres/no-content-extensions
Merged by openshift-bot
2 parents 9b9b5e9 + a228bec commit 2ea8719

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/assets/extensions.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ func generateETag(w http.ResponseWriter, r *http.Request, hash string) string {
9696
}
9797

9898
func serve(w http.ResponseWriter, r *http.Request, bytes []byte, mediaType, hash string) {
99-
if len(bytes) == 0 {
100-
w.WriteHeader(http.StatusNoContent)
101-
return
102-
}
103-
10499
if len(hash) > 0 {
105100
etag := generateETag(w, r, hash)
106101
if r.Header.Get("If-None-Match") == etag {

0 commit comments

Comments
 (0)