mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
Add content length cap for paste creation endpoint (#8)
* add content length cap * add development docker compose stack * Fix paste creation error notification data * Add length cap to hastebin endpoint as well * Mention length cap in Readme Co-authored-by: Lukas Schulte Pelkum <kbrt@protonmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ export function setupButtons() {
|
||||
// Create the paste
|
||||
const response = await api.createPaste(input.value);
|
||||
if (!response.ok) {
|
||||
notifications.error("Failed creating the paste: <b>" + data + "</b>");
|
||||
notifications.error("Failed creating the paste: <b>" + await response.text() + "</b>");
|
||||
return;
|
||||
}
|
||||
const data = await response.json();
|
||||
|
||||
Reference in New Issue
Block a user