You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was experienced when trying to host a MP4 video file.
When using Chrome, it automatically uses this Range: bytes=0- header which seems to trip up Nodel HTTP server.
It returns a misleading error code 404 NOT FOUND but looking deeper in the code, it's actually supposed to return INTERNAL ERROR: 'range' not supported in this context. (related code
This was experienced when trying to host a MP4 video file.
When using Chrome, it automatically uses this
Range: bytes=0-
header which seems to trip up Nodel HTTP server.It returns a misleading error code
404 NOT FOUND
but looking deeper in the code, it's actually supposed to returnINTERNAL ERROR: 'range' not supported in this context.
(related codenodel/nodel-framework/src/main/java/org/nanohttpd/protocols/http/NanoHTTPD.java
Line 893 in e0e6500
Nodel definitely has code to support (even partially support) the
Range
header - doco.I presume browsers make use it to provide file seeking which is different to other content types.
I'm not sure if there was a particular reason why
Range
was specifically being ignored.I tested removing that check and it works fine but I need to check for other side-effects.
The text was updated successfully, but these errors were encountered: