[ 
https://issues.apache.org/jira/browse/SLING-13414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18142879#comment-18142879
 ] 

Carsten Ziegeler commented on SLING-13414:
------------------------------------------

[~kwin] Yes, we could handle this as a further extension. For this issue, it is 
sufficient to let the DefaultErrorHandler only create html if html is request. 
The DefaultErrorHandler is only used if no error handler is registered - which 
in case of Sling is usually always the case (via servlets resolver bundle)

> DefaultErrorHandler: better support non-HTML requests
> -----------------------------------------------------
>
>                 Key: SLING-13414
>                 URL: https://issues.apache.org/jira/browse/SLING-13414
>             Project: Sling
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: Engine 3.0.4
>            Reporter: Joerg Hoh
>            Priority: Major
>             Fix For: Engine 3.0.6
>
>
> The DefaultErrorHandler always returns HTML, even if the accept header says 
> that the user-agent does not expect HTML.
> Also add a reference to the DefaultErrorHandlerServlet in the Sling Servlets 
> Resolver.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to