From d6f43d3c93f15d350b784e82f3ec851bac047bf3 Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 28 Aug 2016 22:22:13 +0200 Subject: [PATCH] Make space in metadata optional for empty values --- protocol.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocol.md b/protocol.md index c0cda48..de0822a 100644 --- a/protocol.md +++ b/protocol.md @@ -294,7 +294,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:** @@ -322,6 +322,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