Is it permissible to respond to a response with a response code of 200 to a range request?

When a client sends a request with a Range header, is it acceptable to just ignore this and return a 200 OK response using the full content?

The spectrum says:

If the byte set is invalid, the server MUST return a response with a status of 416 (the requested range is invalid). Otherwise, the server MUST return a response with a status of 206 (Partial Content) containing satisfactory intervals the body of the object.

As I understand it, I should imply that it is still acceptable to skip this and return 200 OK . I'm right?

+4
source share
1 answer

ยง14.35.2 related states of specifications;

The server MAY ignore the Range header.

In other words, 200 with full content is a valid answer, as that is what you will answer if you did not receive the header.

+1
source

Source: https://habr.com/ru/post/1483623/


All Articles