-
Notifications
You must be signed in to change notification settings - Fork 108
Description
So in the discussion of Creation With Upload, in the example provided, the POST request seems to be missing the Expect: 100-continue
as noted in the paragraph above the example. Further the response seems not quite consistent with the 100-continue use, as laid out by rfc2616-sec8, sec 8.2.3, where it states concerning the server's response:
Upon receiving a request which includes an Expect request-header field with the "100-continue" expectation, an origin server MUST either respond with 100 (Continue) status and continue to read from the input stream, or respond with a final status code. The origin server MUST NOT wait for the request body before sending the 100 (Continue) response.
So going back to the example given in Creation With Upload,, the response was this:
HTTP/1.1 201 Created
Location: https://tus.example.org/files/24e533e02ec3bc40c387f1a0e460e216
Tus-Resumable: 1.0.0
Upload-Offset: 5
To be consistent to the quoted paragraph above, the response should not include the upload-offset because the server hasn't yet read the body, since the protocol is that it must first reply to the request before attempting to read the body and that response is suppose to just contain the 100 (Continue) status, no?