DavidSMonedero opened a new pull request, #26: URL: https://github.com/apache/sling-org-apache-sling-servlets-get/pull/26
SLING-13354: When StreamRenderer renders a directory and finds an index resource without extension (e.g. "index"), the resource is included as "<path>.html", but the response was announced as application/octet-stream when no content type could be guessed. This sets text/html in that case. The content type is set before the HEAD check, so HEAD and GET report the same content type. An index with an extension keeps the content type determined by setHeaders. Also extracts the application/octet-stream and text/html literals into constants. Tests added: - GET with an extensionless index returns text/html - HEAD with an extensionless index returns text/html and does not include anything - an index with extension is not forced to text/html -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
