aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-11-29 18:54:27 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-11-29 18:54:27 +0000
commite360f956683d7be4fc96340ce95bdfde17c83d0e (patch)
treef3b661c186db0dd3a839a3a428a0eb07d46a735e
parent92df8ad5d1df7e0df3be39ca681bb08bdf385752 (diff)
-send content type
git-svn-id: https://gnunet.org/svn/gnunet@25168 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r--src/transport/plugin_transport_http_server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index 8265d827cf..6b88ec5539 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -1353,6 +1353,9 @@ server_access_cb (void *cls, struct MHD_Connection *mhd_connection,
else
{
response = MHD_create_response_from_data (strlen (HTTP_ERROR_RESPONSE), HTTP_ERROR_RESPONSE, MHD_NO, MHD_NO);
+ MHD_add_response_header (response,
+ MHD_HTTP_HEADER_CONTENT_TYPE,
+ "text/html");
res = MHD_queue_response (mhd_connection, MHD_HTTP_NOT_FOUND, response);
MHD_destroy_response (response);
return res;