From 38aab0e2b5140d98cdf29c7acd830a7bdf3792e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Fri, 3 Feb 2012 16:50:44 +0100 Subject: [PATCH] Try to make file:// uris work in win32 too --- libsoup/soup-request-file.c | 9 +++------ 1 file 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; } -- 2.7.4