[libsoup] Revert "Require body streams implement GPollableInputStream"
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Revert "Require body streams implement GPollableInputStream"
- Date: Thu, 18 Mar 2021 10:19:02 +0000 (UTC)
commit 54195efab661e2f2ba594b5256111c9f4865d30f
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Thu Mar 18 11:17:59 2021 +0100
Revert "Require body streams implement GPollableInputStream"
This reverts commit 0a34d642a401c5880ec4f533250fdddc6dbb12b0. We will
have to add support for non-pollable request body streams in any case.
libsoup/soup-message.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libsoup/soup-message.c b/libsoup/soup-message.c
index 0af1dd00..73e7e003 100644
--- a/libsoup/soup-message.c
+++ b/libsoup/soup-message.c
@@ -920,7 +920,7 @@ soup_message_new_from_multipart (const char *uri_string,
* soup_message_set_request_body:
* @msg: the message
* @content_type: (allow-none): MIME Content-Type of the body, or %NULL if unknown
- * @stream: (allow-none): a #GPollableInputStream to read the request body from
+ * @stream: (allow-none): a #GInputStream to read the request body from
* @content_length: the byte length of @stream or -1 if unknown
*
* Set the request body of a #SoupMessage.
@@ -928,7 +928,6 @@ soup_message_new_from_multipart (const char *uri_string,
* not be changed if present.
* The request body needs to be set again in case @msg is restarted
* (in case of redirection or authentication).
- * @stream must implement #GPollableInputStream.
*/
void
soup_message_set_request_body (SoupMessage *msg,
@@ -937,7 +936,7 @@ soup_message_set_request_body (SoupMessage *msg,
gssize content_length)
{
g_return_if_fail (SOUP_IS_MESSAGE (msg));
- g_return_if_fail (stream == NULL || G_IS_POLLABLE_INPUT_STREAM (stream));
+ g_return_if_fail (stream == NULL || G_IS_INPUT_STREAM (stream));
g_return_if_fail (content_length == -1 || content_length >= 0);
SoupMessagePrivate *priv = soup_message_get_instance_private (msg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]