http-signatures icon indicating copy to clipboard operation
http-signatures copied to clipboard

Inconsistent use of \n in examples

Open rinne opened this issue 4 years ago • 0 comments

In some of the data-to-be-signed examples, newline is included as \n and the use of \n is explained in the text. However \n is not used consistently in all examples. In case of special headers like (created), in the examples \n is missing even it's on the other lines of that very example.

---------- Page 10

(request-target): post /foo\n
(created): 1402174295
host: example.org\n
digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n
content-length: 18

--------->

(request-target): post /foo\n
(created): 1402174295\n
host: example.org\n
digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n
content-length: 18

----------

---------- Page 11

(request-target): post /foo\n
(created): 1402174295
host: example.org\n
digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n
content-length: 18

--------->

(request-target): post /foo\n
(created): 1402174295\n
host: example.org\n
digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n
content-length: 18

----------

---------- Page 12

(request-target): post /foo\n
(created): 1402170695
(expires): 1402170995
host: example.org\n
digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n
content-length: 18

--------->

(request-target): post /foo\n
(created): 1402170695\n
(expires): 1402170995\n
host: example.org\n
digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n
content-length: 18

----------

---------- Page 13

(request-target): post /foo\n
(created): 1402170695
host: example.org\n
digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n
content-length: 18

--------->

(request-target): post /foo\n
(created): 1402170695\n
host: example.org\n
digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n
content-length: 18

----------

rinne avatar Feb 28 '20 07:02 rinne