As I mentioned in #616, the plugin is crashing when try to send a file. The origin of problem was in error handling code. This PR should fix the error that can not be properly handled by the plugin and does nothing with the error in error handling code itself.
After fixing this problem I've encountered another one: the server does not react on the file transfer performed by ssl code. So I've just switched to purple_http_request_set_contents_reader as it mentioned in TODOs. Now the file transfer works for me.
As I mentioned in #616, the plugin is crashing when try to send a file. The origin of problem was in error handling code. This PR should fix the error that can not be properly handled by the plugin and does nothing with the error in error handling code itself.
First of all it fixes the
"{\\"message\\":\\"PlatformId needs to be specified\\"}"
server message by supplying the platform id within the header.After fixing this problem I've encountered another one: the server does not react on the file transfer performed by ssl code. So I've just switched to
purple_http_request_set_contents_reader
as it mentioned in TODOs. Now the file transfer works for me.