From 8ffaedcf8a20f73c2d88bf98896674405069d99d Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 6 Oct 2019 21:49:28 +0200 Subject: [PATCH] Make space in metadata optional for empty values (#90) --- protocol.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocol.md b/protocol.md index c54ba09..29b2108 100644 --- a/protocol.md +++ b/protocol.md @@ -299,7 +299,7 @@ Host: tus.example.org Content-Length: 0 Upload-Length: 100 Tus-Resumable: 1.0.0 -Upload-Metadata: filename d29ybGRfZG9taW5hdGlvbl9wbGFuLnBkZg== +Upload-Metadata: filename d29ybGRfZG9taW5hdGlvbl9wbGFuLnBkZg==,is_confidential ``` **Response:** @@ -327,6 +327,8 @@ The `Upload-Metadata` request and response header MUST consist of one or more co key-value pairs. The key and value MUST be separated by a space. The key MUST NOT contain spaces and commas and MUST NOT be empty. The key SHOULD be ASCII encoded and the value MUST be Base64 encoded. All keys MUST be unique. +The value MAY be empty. In these cases, the space, which would normally separate +the key and the value, MAY be left out. #### Requests