diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-03-27 18:51:13 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-03-27 19:01:34 +0100 |
commit | 058771b594e9382cd65f3366129e017e357d659b (patch) | |
tree | fc9883deffec9f125e7ce0e5d86e6fef8a2f6b7f /vermin | |
parent | 43384a64917cfe25af62376da19e311e628e0d4c (diff) | |
download | paste-058771b594e9382cd65f3366129e017e357d659b.tar.gz paste-058771b594e9382cd65f3366129e017e357d659b.tar.xz paste-058771b594e9382cd65f3366129e017e357d659b.zip |
Only handle PUT requests and respond correctly
Previously PUT and POST requests were handled the same way, this isn't
correct and POST should be used for the functionality where a random URL
is generated. Additionally PUT should reply with 201 when inserting and
204 when updating.
Diffstat (limited to 'vermin')
0 files changed, 0 insertions, 0 deletions