You example gives me NPE with a normal curl (as that’s not stating you want an event stream), but works with the command above.
s
Sandymcp
10/05/2021, 2:14 PM
Ok, but then it should return 406 not accepted?
Sandymcp
10/05/2021, 2:15 PM
and not a 500 and certainly not a 404 when there is a normal http handler present.
Sandymcp
10/05/2021, 2:56 PM
Ok I could put a filter in front of the SSE handler, catch the NPE and check the headers and return 406 myself. Of course if I were to need an http handler on the same port then Undertow would give me the unwanted 404/