KeePass crash on malformed request
piegamesde opened this issue · comments
piegames commented
I am currently trying to write a little client for KeePassHTTP using python:
#!/bin/python3
import requests
payload = {
'header': 'Connection: keep-alive',
'header': 'Accept: */*',
'header': 'Accept-Encoding: gzip, deflate, br',
'header': 'Content-Type: application/json',
'post-data': '{\"RequestType\":\"test-associate\",\"TriggerUnlock\":false}'
}
r = requests.get('http://localhost:19455', data=payload)
print(r.status_code)
print(r.text)
This little code has an interesting property: start it with python3
and KeePass will crash. This shouldn't happen.