From 2e8f21cb1b75ecd32c1ec751840a0e1c789c5ba9 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 19 Nov 2010 22:57:49 +0100 Subject: [PATCH] [broadway] Allow loading client.html as "/" only --- gdk/broadway/gdkdisplay-broadway.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/broadway/gdkdisplay-broadway.c b/gdk/broadway/gdkdisplay-broadway.c index 31eda8db74..c3f0fa0a24 100644 --- a/gdk/broadway/gdkdisplay-broadway.c +++ b/gdk/broadway/gdkdisplay-broadway.c @@ -524,7 +524,7 @@ got_request (HttpRequest *request) version = g_strndup (start, tmp - start); } - if (strcmp (escaped, "/client.html") == 0) + if (strcmp (escaped, "/client.html") == 0 || strcmp (escaped, "/") == 0) send_data (request, "text/html", client_html, G_N_ELEMENTS(client_html) - 1); else if (strcmp (escaped, "/broadway.js") == 0) send_data (request, "text/javascript", broadway_js, G_N_ELEMENTS(broadway_js) - 1);