Open ypiguet-epfl opened 7 years ago
Note that the original http2 is unmaintained, there is an ongoing refactoring in the https://github.com/aseba-community/aseba/tree/http-refactor branch.
But of course, if a small patch corrects a problem, we can merge it for sure.
When a request to asebahttp2 fails with page not found, the correct http status code 404 is sent to the client, but the content is empty with content-type
application/json
(empty is invalid for json). While Chrome displays an error message, Firefox shows an empty page.I suggest to reply with visible content and a valid content-type for it. Here is a simple patch. The
setErrorReply
method should also be called instead ofsetStatus
from other places.