3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-26 20:52:37 +01:00

WebPaste: paste as text/plain to 0x0.st (prevents .bin pastes)

This commit is contained in:
Pragmatic Software 2021-07-24 14:18:19 -07:00
parent 9ebf188530
commit baa726bec6
2 changed files with 2 additions and 2 deletions

View File

@ -765,7 +765,7 @@ sub truncate_result {
$trunc .= "; see $paste_result for full text.]";
} else {
# an error or something else
$trunc .= "$paste_result]";
$trunc .= "; $paste_result]";
}
$paste_result //= 'not pasted';

View File

@ -93,7 +93,7 @@ sub paste_0x0st {
return $ua->post(
"https://0x0.st",
[ file => [ undef, "file", Content => $text ] ],
[ file => [ undef, "foo", Content => $text, 'Content-Type' => 'text/plain' ] ],
Content_Type => 'form-data'
);
}