Fix wording in docstring

pull/34/head
Andrey Kislyuk 2022-04-10 22:23:58 -07:00
parent c9e8e39eff
commit 0970baaff4
No known key found for this signature in database
GPG Key ID: 8AFAFCD242818A52
1 changed files with 3 additions and 3 deletions

View File

@ -170,9 +170,9 @@ class HTTPSignatureAuth(requests.auth.AuthBase):
:param require_components:
A list of lowercased header names or derived component IDs ("@method", "@target-uri", "@authority",
"@scheme", "@request-target", "@path", "@query", "@query-params", "@status", or "@request-response" as
specified in the standard) to require to be covered by the signature. If the "content-digest" is
specified here (recommended for requests that have a body), it will be verified by matching it against the
digest hash computed on the body of the request (expected to be bytes).
specified in the standard) to require to be covered by the signature. If the "content-digest" header field
is specified here (recommended for requests that have a body), it will be verified by matching it against
the digest hash computed on the body of the request (expected to be bytes).
If this parameter is not specified, ``verify()`` will set it to ("@method", "@authority", "@target-uri")
for requests without a body, and ("@method", "@authority", "@target-uri", "content-digest") for requests