From ea17e9c2a3350ba670f95a6fa0ce7716adfa4176 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 25 Nov 2016 23:40:29 +0300 Subject: Make sure all HTTP headers are UTF8-encoded Especially X-Family-Name, X-Given-Name. Since we get all the data from JSON and JSON is in UTF8 by default RFC 7159, we are safe. Refactored to make it less error-prone and to get as small number of encoding/decoding as possible. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 0b37443..fcb57cc 100644 --- a/README.md +++ b/README.md @@ -126,9 +126,12 @@ Likewise `readers` have no access to e.g. `/wiki/edit/delete_everything.php`. HTTP headers passed to the back-end server ------------------------------------------ +All Sproxy headers are UTF8-encoded. + + header | value -------------------- | ----- -`From:` | visitor's email address +`From:` | visitor's email address, lower case `X-Groups:` | all groups that granted access to this resource, separated by commas (see the note below) `X-Given-Name:` | the visitor's given (first) name `X-Family-Name:` | the visitor's family (last) name -- cgit v1.2.3