[libsoup] Try to make file:// uris work in win32 too
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Try to make file:// uris work in win32 too
- Date: Fri, 3 Feb 2012 18:33:50 +0000 (UTC)
commit 38aab0e2b5140d98cdf29c7acd830a7bdf3792e4
Author: PaweÅ Forysiuk <tuxator o2 pl>
Date: Fri Feb 3 16:50:44 2012 +0100
Try to make file:// uris work in win32 too
libsoup/soup-request-file.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/libsoup/soup-request-file.c b/libsoup/soup-request-file.c
index e772653..116a3bf 100644
--- a/libsoup/soup-request-file.c
+++ b/libsoup/soup-request-file.c
@@ -93,12 +93,9 @@ soup_request_file_ensure_file (SoupRequestFile *file,
uri = soup_request_get_uri (SOUP_REQUEST (file));
if (uri->scheme == SOUP_URI_SCHEME_FILE) {
- gchar *decoded_uri = soup_uri_decode (uri->path);
-
- if (decoded_uri) {
- file->priv->gfile = g_file_new_for_path (decoded_uri);
- g_free (decoded_uri);
- }
+ gchar *file_uri = soup_uri_to_string (uri, FALSE);
+ file->priv->gfile = g_file_new_for_uri (file_uri);
+ g_free (file_uri);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]