aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-29 18:54:27 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-29 18:54:27 +0000
commit567249dc588769a74fbcbbb2a7b1042b3ebeb5d2 (patch)
treef3b661c186db0dd3a839a3a428a0eb07d46a735e /src/transport/plugin_transport_http_server.c
parent1bf018f5671ec26fea3c2a4bbe6ff23b4b1dc8e3 (diff)
downloadgnunet-567249dc588769a74fbcbbb2a7b1042b3ebeb5d2.tar.gz
gnunet-567249dc588769a74fbcbbb2a7b1042b3ebeb5d2.zip
-send content type
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-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 8265d827c..6b88ec553 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,
1353 else 1353 else
1354 { 1354 {
1355 response = MHD_create_response_from_data (strlen (HTTP_ERROR_RESPONSE), HTTP_ERROR_RESPONSE, MHD_NO, MHD_NO); 1355 response = MHD_create_response_from_data (strlen (HTTP_ERROR_RESPONSE), HTTP_ERROR_RESPONSE, MHD_NO, MHD_NO);
1356 MHD_add_response_header (response,
1357 MHD_HTTP_HEADER_CONTENT_TYPE,
1358 "text/html");
1356 res = MHD_queue_response (mhd_connection, MHD_HTTP_NOT_FOUND, response); 1359 res = MHD_queue_response (mhd_connection, MHD_HTTP_NOT_FOUND, response);
1357 MHD_destroy_response (response); 1360 MHD_destroy_response (response);
1358 return res; 1361 return res;