Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digest in requests with no payload body #1143

Closed
ioggstream opened this issue Mar 17, 2020 · 0 comments · Fixed by #1155
Closed

Digest in requests with no payload body #1143

ioggstream opened this issue Mar 17, 2020 · 0 comments · Fixed by #1155

Comments

@ioggstream
Copy link
Contributor

ioggstream commented Mar 17, 2020

I expect

An example of using Digest in a request with no payload body.
There is a misconceptions that Digest does not apply to request with no payload body.

As it's not a special case #849 (comment) for sha-256 we can just use

In [120]: sha256(b'').hexdigest()                                                                                                                                                                                                            
Out[120]: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'

Other algorithms are free to define a different computation, and the examples will only be tied to sha-256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants