Skip to content

Commit

Permalink
Platform 8 upgrade: Port Bazqux plugin to Soup 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dar5hak committed Dec 8, 2024
1 parent 3833e04 commit 18117d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/backend/bazqux/bazquxConnection.vala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class FeedReader.bazquxConnection {

var message = new Soup.Message("POST", "https://bazqux.com/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 @@ -97,7 +97,7 @@ public class FeedReader.bazquxConnection {

if(message_string != null)
{
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);
Expand Down

0 comments on commit 18117d3

Please sign in to comment.