Closed egorsmkv closed 8 years ago
Hello, there is no HEAD support, I suppose it should respond as such, but it's currently not implemented to do so.
HEAD may appear to currently work, but it's just sending a regular response along with the content, curl just doesn't show it, but if you pass the -v option, it will mention an excess found at the end (i.e. the content).
This needs to be reopened as an invalid length is being returned from a HEAD request.
I think it should return a 405 error, or the feature be implemented.
It should return a 200 response but without a message body, but obviously the content length needs to be calculated correctly.
After some testing this only happens when requesting a directory root (i.e no file is specified) and it should respond with the length of the default index file.
Line 237 in main.asm.
"cmp r9, 0x06 ;TODO why exactly is this 6?"
The 0x06 looks to be the offset of the root file request. However when it is a HEAD request this is obviously one offset byte longer than a GET.
index.html: