From 8bc34d6bc95d7f0fe6e1d0eb6593ebfadfcae687 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 29 Sep 2017 14:40:49 -0400 Subject: mq_about_request(): Finish request --- (limited to 'src') diff --git a/src/about.c b/src/about.c index 96ec4be..e21fa9e 100644 --- a/src/about.c +++ b/src/about.c @@ -78,6 +78,15 @@ mq_about_request(WebKitURISchemeRequest *request, MqApplication *application) } if (g_strcmp0(path, "marquee") == 0) { - mq_about_marquee_response(application, query); + contents = mq_about_marquee_response(application, query); + stream_length = strlen(contents); + stream = g_memory_input_stream_new_from_data(contents, + stream_length, g_free); + } else { + return; } + + webkit_uri_scheme_request_finish(request, stream, stream_length, + "text/html"); + g_object_unref(stream); } -- cgit v0.9.1