aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/data/http
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-06-04 20:15:04 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-06-04 20:42:26 +0200
commit913e9c9e847ce753fcfb2354894682018d03084d (patch)
treeda8dcce088084c1360ae0217cda4d971119e005e /_pytest/data/http
parent8518fce0363208753119e893a9b83e3d32cb17ce (diff)
downloadwee-slack-913e9c9e847ce753fcfb2354894682018d03084d.tar.gz
Use hook_process_hashtable for uploading files
Instead of creating a space separated string of the arguments for curl, create a dict and use hook_process_hashtable. The benefit of this is that we don't need to escape the spaces in the file name. This also utilizes SlackRequest to create the url we post to, so we don't have to hard code the url in this function. I tried to use hook_process_hashtable to request the url directly, instead of calling the curl command, but I didn't manage to make it upload the file in a format accepted by Slack. I opened an issue to weechat about it: https://github.com/weechat/weechat/issues/1352
Diffstat (limited to '_pytest/data/http')
0 files changed, 0 insertions, 0 deletions