teamhanko / passkeys

FIDO2-certified passkey server and SDKs for adding passkey support to any auth system
https://hanko.io/passkey-api
GNU Affero General Public License v3.0
115 stars 8 forks source link

fix: set an empty json body if no body is set #76

Open FreddyDevelop opened 2 months ago

FreddyDevelop commented 2 months ago

If no body is set it can be that the server returns an EOF error. So this PR sets the body to an empty json object if no body was send.