diff options
author | Nicholas Vinson <nvinson234@gmail.com> | 2020-10-04 19:53:25 -0400 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-10-19 20:54:18 +0200 |
commit | 1e24a8eb66ee4cec9d247e222ec421889590afc6 (patch) | |
tree | b69df175a701b4ecfab4520c6d57e3f3a89ddcd6 /wgetpaste.spec | |
parent | f6bdac33e54b5812354eb13a7454e893883027a2 (diff) | |
download | wgetpaste-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