Skip to content

Commit

Permalink
HTTP header added
Browse files Browse the repository at this point in the history
  • Loading branch information
ikaros-project committed Dec 29, 2016
1 parent bdca98b commit 2a6a9e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/WebUI/WebUI.cc
@@ -1,7 +1,7 @@
//
// WebUI.cc HTTP support for the IKAROS kernel
//
// Copyright (C) 2005-2015 Christian Balkenius
// Copyright (C) 2005-2016 Christian Balkenius
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -1859,6 +1859,10 @@ WebUI::SendGroups(XMLElement * xml)
void
WebUI::SendInspector()
{
Dictionary rtheader;
rtheader.Set("Content-Type", "text/html");
socket->SendHTTPHeader(&rtheader);

socket->Send("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
socket->Send("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n");
socket->Send("<head profile=\"http://www.w3.org/2005/11/profile\">\n");
Expand Down

0 comments on commit 2a6a9e1

Please sign in to comment.