Skip to content

Commit 823b3ef

Browse files
authored
Merge pull request #43 from basecamp/revert-42-revert-38-lb/support-application-xdirectory-content-type
Support application xdirectory content type
2 parents 2a9672f + c55aea6 commit 823b3ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imageproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func (p *Proxy) serveImage(w http.ResponseWriter, r *http.Request) {
274274
}
275275

276276
func isInvalidContentType(contentType string) bool {
277-
return contentType == "" || contentType == "application/octet-stream" || contentType == "binary/octet-stream" || !strings.Contains(contentType, "/")
277+
return contentType == "" || contentType == "application/octet-stream" || contentType == "application/x-directory" || contentType == "binary/octet-stream" || !strings.Contains(contentType, "/")
278278
}
279279

280280
// peekContentType peeks at the first 512 bytes of p, and attempts to detect

0 commit comments

Comments
 (0)