Commit 45d20367 authored by alp@webkit.org's avatar alp@webkit.org

2008-05-19 Alp Toker <alp@nuanti.com>

        Reviewed by Maciej.

        GTK+/soup fixes:

        Remove the fragment part of the URL since the file backend doesn't
        deal with it.

        Fix a typo in the cleanup function.

        * platform/network/soup/ResourceHandleSoup.cpp:
        (WebCore::cleanupGioOperation):
        (WebCore::ResourceHandle::startGio):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6fc919da
2008-05-19 Alp Toker <alp@nuanti.com>
Reviewed by Maciej.
GTK+/soup fixes:
Remove the fragment part of the URL since the file backend doesn't
deal with it.
Fix a typo in the cleanup function.
* platform/network/soup/ResourceHandleSoup.cpp:
(WebCore::cleanupGioOperation):
(WebCore::ResourceHandle::startGio):
2008-05-19 Kevin McCullough <kmccullough@apple.com>
Reviewed by Adam.
......@@ -400,7 +400,7 @@ static void cleanupGioOperation(ResourceHandle* handle)
}
if (d->m_input_stream) {
g_object_unref(d->m_input_stream);
d->m_cancellable = NULL;
d->m_input_stream = NULL;
}
if (d->m_buffer) {
g_free(d->m_buffer);
......@@ -563,6 +563,11 @@ bool ResourceHandle::startGio(String urlString)
return false;
}
// Remove the fragment part of the URL since the file backend doesn't deal with it
int fragPos;
if ((fragPos = urlString.find("#")) != -1)
urlString = urlString.left(fragPos);
d->m_gfile = g_file_new_for_uri(urlString.utf8().data());
d->m_cancellable = g_cancellable_new();
g_file_query_info_async(d->m_gfile,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment