diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2021-03-18 11:17:59 +0100 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2021-03-18 11:17:59 +0100 |
commit | 54195efab661e2f2ba594b5256111c9f4865d30f (patch) | |
tree | cbe87a535a29baf2270f1f77ffb62ed1c92144cc | |
parent | 9cded1ab1f6056551e9eb500d8b70114815f5d03 (diff) | |
download | libsoup-54195efab661e2f2ba594b5256111c9f4865d30f.tar.gz |
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.
-rw-r--r-- | libsoup/soup-message.c | 5 |
1 files 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); |