From ffe480e3de3713bac92079a173bc7e2ef48799bb Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Tue, 12 Oct 2021 11:34:19 +0200 Subject: client: allow responses without a content --- src/scm/webid-oidc/client/application.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/scm/webid-oidc/client') diff --git a/src/scm/webid-oidc/client/application.scm b/src/scm/webid-oidc/client/application.scm index bde0018..863cae9 100644 --- a/src/scm/webid-oidc/client/application.scm +++ b/src/scm/webid-oidc/client/application.scm @@ -462,14 +462,15 @@ (or (? symbol? content-type) ((? symbol? content-type) _ ...)) (or (? string? content) - (? bytevector? content))) + (? bytevector? content) + (? not content))) (slot-set! page 'etag etag) (slot-set! page 'links links) (slot-set! page 'content-type content-type) (slot-set! page 'content content)) (else (scm-error 'wrong-type-arg "make " - (G_ "the etag (#:etag) should be a string or #f, the links (#:links) should be a list of links, the content-type (#:content-type) should be a symbol or a list whose first item is a symbol, and the content (#:content) should be a string or a bytevector") + (G_ "the etag (#:etag) should be a string or #f, the links (#:links) should be a list of links, the content-type (#:content-type) should be a symbol or a list whose first item is a symbol, and the content (#:content) should be a string or a bytevector, or #f for responses without a content") '() (list etag links content-type content))))))) -- cgit v1.2.3