Skip to content

Commit 9e88ec5

Browse files
committed
Port Inoreader plugin to Soup 3
1 parent 6471bff commit 9e88ec5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/backend/inoreader/InoReaderConnection.vala

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class FeedReader.InoReaderConnection {
3939
+ "&client_secret=" + InoReaderSecret.apiClientSecret
4040
+ "&scope="
4141
+ "&grant_type=authorization_code";
42-
message.set_request("application/x-www-form-urlencoded", Soup.MemoryUse.COPY, message_string.data);
42+
message.set_request_body_from_bytes("application/x-www-form-urlencoded", new Bytes(message_string.data));
4343
var response_body = m_session.send_and_read(message);
4444

4545
if(message.status_code != 200)
@@ -89,7 +89,7 @@ public class FeedReader.InoReaderConnection {
8989
+ "&grant_type=refresh_token"
9090
+ "&refresh_token=" + m_utils.getRefreshToken();
9191

92-
message.set_request("application/x-www-form-urlencoded", Soup.MemoryUse.COPY, message_string.data);
92+
message.set_request_body_from_bytes("application/x-www-form-urlencoded", new Bytes(message_string.data));
9393
var response_body = m_session.send_and_read(message);
9494

9595
if(message.status_code != 200)
@@ -153,7 +153,7 @@ public class FeedReader.InoReaderConnection {
153153

154154
if(message_string != null)
155155
{
156-
message.set_request("application/x-www-form-urlencoded", Soup.MemoryUse.COPY, message_string.data);
156+
message.set_request_body_from_bytes("application/x-www-form-urlencoded", new Bytes(message_string.data));
157157
}
158158

159159
var response_body = m_session.send_and_read(message);
@@ -166,7 +166,7 @@ public class FeedReader.InoReaderConnection {
166166

167167
return Response() {
168168
status = message.status_code,
169-
data = (string)response_body.get_data().data
169+
data = (string)response_body.get_data()
170170
};
171171
}
172172

0 commit comments

Comments
 (0)