summaryrefslogtreecommitdiff
path: root/wgetpaste.spec
diff options
context:
space:
mode:
authorNicholas Vinson <nvinson234@gmail.com>2020-10-04 19:53:25 -0400
committerRasmus Thomsen <oss@cogitri.dev>2020-10-19 20:54:18 +0200
commit1e24a8eb66ee4cec9d247e222ec421889590afc6 (patch)
treeb69df175a701b4ecfab4520c6d57e3f3a89ddcd6 /wgetpaste.spec
parentf6bdac33e54b5812354eb13a7454e893883027a2 (diff)
downloadwgetpaste-1e24a8eb66ee4cec9d247e222ec421889590afc6.tar.gz
Update post handling logic
The current post handling logic assumes that either POST_${engine} is defined and is a string, or json_${engine} is defined and is a function. This logic does not work for paste bins such as ix.io. To make the logic more flexible, the string-function hybrid approach has been replaced with a function call chain. The entry-point to this chain is always POST_${engine} NICK DESCRIPTION LANGUAGE EXPIRATION CVT_TABS INPUT and for most services POST_${engine} is defined as: POST_generic <post format string> $1 $2 $3 $4 $5 $6 where POST_generic is the original logic for handling post requests. For JSON post submissions, the coresponding json_${engine} function is renamed to POST_${engine} and the arguments adjusted to match the calling convention mentioned above.
Diffstat (limited to 'wgetpaste.spec')
0 files changed, 0 insertions, 0 deletions