]> Pileus Git - ~andy/gtk/commitdiff
[broadway] Allow loading client.html as "/" only
authorAlexander Larsson <alexl@redhat.com>
Fri, 19 Nov 2010 21:57:49 +0000 (22:57 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 25 Nov 2010 21:09:30 +0000 (22:09 +0100)
gdk/broadway/gdkdisplay-broadway.c

index 31eda8db746432c6dd59da1f58c34ce18aecb64b..c3f0fa0a24e3cb5049d1635056ba34b27415417e 100644 (file)
@@ -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);