Skip to content
Unverified Commit a52d2066 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Make sure the log doesn't try to read from PUT if it can't



If a PUT request comes in that is not JSON or from encoded. Then we can
only read it (exactly) once. If that is the case we must assume no
shared secret is set.

If we don't then we either are the first to read it, thus causing the
real read of the data to fail.

Or we are later and then it throws an exception (also failing the
request).

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent 2dd49206
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