Skip to content

Commit dd6cf4d

Browse files
committed
Port FeedHQ plugin to Soup 3
1 parent 026a317 commit dd6cf4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/backend/feedhq/feedhqConnection.vala

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class FeedReader.FeedHQConnection {
4949

5050
var message = new Soup.Message("POST", "https://feedhq.org/accounts/ClientLogin");
5151
string message_string = "Email=" + m_username + "&Passwd=" + m_passwd;
52-
message.set_request("application/x-www-form-urlencoded", Soup.MemoryUse.COPY, message_string.data);
52+
message.set_request_body_from_bytes("application/x-www-form-urlencoded", new Bytes(message_string.data));
5353
var response_body = m_session.send_and_read(message);
5454
string response = (string)response_body.get_data();
5555
try{
@@ -121,7 +121,7 @@ public class FeedReader.FeedHQConnection {
121121
var message_string_post = message_string + "&T=" + m_utils.getPostToken();
122122
if(message_string != null)
123123
{
124-
message.set_request("application/x-www-form-urlencoded", Soup.MemoryUse.COPY, message_string_post.data);
124+
message.set_request_body_from_bytes("application/x-www-form-urlencoded", new Bytes(message_string_post.data));
125125
}
126126

127127
var response_body = m_session.send_and_read(message);

0 commit comments

Comments
 (0)