summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-29 14:40:49 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-29 14:40:49 (EDT)
commit8bc34d6bc95d7f0fe6e1d0eb6593ebfadfcae687 (patch)
tree9436ffd89f40dc0f0f66eeaef6ed2924135d5c15 /src
parent926029a1614f03a2904be37b205ff3569d50b856 (diff)
downloadmarquee-8bc34d6bc95d7f0fe6e1d0eb6593ebfadfcae687.zip
marquee-8bc34d6bc95d7f0fe6e1d0eb6593ebfadfcae687.tar.gz
marquee-8bc34d6bc95d7f0fe6e1d0eb6593ebfadfcae687.tar.bz2
mq_about_request(): Finish request
Diffstat (limited to 'src')
-rw-r--r--src/about.c11
1 files changed, 10 insertions, 1 deletions
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);
}