Commit 5646c29
authored
Clarify OPTIONS requests wrt Tus-Rusumabl and Tus-Version headers (#153)
From https://tus.io/protocols/resumable-upload.html#options
> A successful response indicated by the `204 No Content` or `200 OK` status MUST contain the `Tus-Version` header. It MAY include the `Tus-Extension` and `Tus-Max-Size` headers.
>
> The Client SHOULD NOT include the `Tus-Resumable` header in the request and the Server MUST ignore the header.
From https://tus.io/protocols/resumable-upload.html#tus-resumable
> The `Tus-Resumable` header MUST be included in every request and response except for `OPTIONS` requests. The value MUST be the version of the protocol used by the Client or the Server.
>
> If the version specified by the Client is not supported by the Server, it MUST respond with the `412 Precondition Failed` status and MUST include the `Tus-Version` header into the response. In addition, the Server MUST NOT process the request.
So we should omit the `Tus-Resumable` header from the OPTIONS request and clarify the example1 parent dcede58 commit 5646c29
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
| |||
0 commit comments