1. Ian Bicking
  2. PasteScript
  3. Issues
Issue #11 resolved

paste.fileapp.DataApp returns "200 OK" for range requests

Jan-Wijbrand Kolman
created an issue

The DataApp get() method responds with 200 OK for non-range requests and with 206 for range requests.

However, for the edge-case where the request range says "0-" (requesting the range from the first byte until the end of the file) DataApp also responds with 200 OK.

I think - but I'm not sure - when a explicit range is requested (even if it request the complete file) the response should be a 206.

Comments (3)

  1. Log in to comment