I have a page component, which includes a JSP called getString.jsp that's intended to be called via Ajax, like domain.com/path/path/page.getString.html. This was working fine in CQ 5.4 - when I call that URL, I get a simple string value. When I upgraded to AEM 6.1, I started getting the correct string, but with an HTML comment similar to this after it
I tried migrating that functionality to a servlet in my OSGi bundle instead of a small JSP, but the result is the same (that HTML comment above actually comes from this test).
The strange thing is that I have a different servlet doing a similar thing which does not append a similar comment. Does anyone know where this is coming from?