Skip to content

Commit

Permalink
Port FeedHQ plugin to Soup 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dar5hak committed Oct 6, 2024
1 parent 026a317 commit dd6cf4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/backend/feedhq/feedhqConnection.vala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class FeedReader.FeedHQConnection {

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

var response_body = m_session.send_and_read(message);
Expand Down

0 comments on commit dd6cf4d

Please sign in to comment.