Commit cfa810e0 authored by Geoff Simmons's avatar Geoff Simmons

fix an example in the docs

parent 13e0e731
Pipeline #34 skipped
......@@ -137,7 +137,7 @@ Example::
# the hex-encoded data in request header Msg.
# Respond with 401 Not Authorized if the HMAC doesn't check.
sub vcl_recv {
if (!blob.equal(blobcode.decode(SHA256, req.http.HMAC),
if (!blob.equal(blobcode.decode(HEX, req.http.HMAC),
hmac.hmac(blobcode.decode(HEX, req.http.Msg)))) {
return(synth(401));
}
......
......@@ -100,7 +100,7 @@ Example::
# the hex-encoded data in request header Msg.
# Respond with 401 Not Authorized if the HMAC doesn't check.
sub vcl_recv {
if (!blob.equal(blobcode.decode(SHA256, req.http.HMAC),
if (!blob.equal(blobcode.decode(HEX, req.http.HMAC),
hmac.hmac(blobcode.decode(HEX, req.http.Msg)))) {
return(synth(401));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment