aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-12 07:52:45 +0000
committerChristian Grothoff <christian@grothoff.org>2015-06-12 07:52:45 +0000
commitfa7754fd510260ffb8850feb5d6559e55f75d4e9 (patch)
tree6da39156aedb0adcbfd3c289ea716b0939efa19c /src/transport
parentd67d6d47727a91ed1767317f15f071abebfbdff7 (diff)
downloadgnunet-fa7754fd510260ffb8850feb5d6559e55f75d4e9.tar.gz
gnunet-fa7754fd510260ffb8850feb5d6559e55f75d4e9.zip
fix use of deprecated MHD symbols
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/plugin_transport_http_server.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index 9f2908bda..3ba651cb7 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -1761,10 +1761,9 @@ server_access_cb (void *cls,
1761 else 1761 else
1762 { 1762 {
1763 /* existing session already has matching connection, refuse */ 1763 /* existing session already has matching connection, refuse */
1764 response = MHD_create_response_from_data (strlen (HTTP_ERROR_RESPONSE), 1764 response = MHD_create_response_from_buffer (strlen (HTTP_ERROR_RESPONSE),
1765 HTTP_ERROR_RESPONSE, 1765 HTTP_ERROR_RESPONSE,
1766 MHD_NO, 1766 MHD_RESPMEM_PERSISTENT);
1767 MHD_NO);
1768 MHD_add_response_header (response, 1767 MHD_add_response_header (response,
1769 MHD_HTTP_HEADER_CONTENT_TYPE, 1768 MHD_HTTP_HEADER_CONTENT_TYPE,
1770 "text/html"); 1769 "text/html");
@@ -1779,8 +1778,9 @@ server_access_cb (void *cls,
1779 { 1778 {
1780 /* Session was already disconnected; 1779 /* Session was already disconnected;
1781 sent HTTP/1.1: 200 OK as response */ 1780 sent HTTP/1.1: 200 OK as response */
1782 response = MHD_create_response_from_data (strlen ("Thank you!"), 1781 response = MHD_create_response_from_buffer (strlen ("Thank you!"),
1783 "Thank you!", MHD_NO, MHD_NO); 1782 "Thank you!",
1783 MHD_RESPMEM_PERSISTENT);
1784 add_cors_headers(response); 1784 add_cors_headers(response);
1785 MHD_queue_response (mhd_connection, MHD_HTTP_OK, response); 1785 MHD_queue_response (mhd_connection, MHD_HTTP_OK, response);
1786 MHD_destroy_response (response); 1786 MHD_destroy_response (response);
@@ -1823,8 +1823,9 @@ server_access_cb (void *cls,
1823 s->address->address_length)); 1823 s->address->address_length));
1824 sc->connected = GNUNET_NO; 1824 sc->connected = GNUNET_NO;
1825 /* Sent HTTP/1.1: 200 OK as PUT Response\ */ 1825 /* Sent HTTP/1.1: 200 OK as PUT Response\ */
1826 response = MHD_create_response_from_data (strlen ("Thank you!"), 1826 response = MHD_create_response_from_buffer (strlen ("Thank you!"),
1827 "Thank you!", MHD_NO, MHD_NO); 1827 "Thank you!",
1828 MHD_RESPMEM_PERSISTENT);
1828 add_cors_headers(response); 1829 add_cors_headers(response);
1829 MHD_queue_response (mhd_connection, MHD_HTTP_OK, response); 1830 MHD_queue_response (mhd_connection, MHD_HTTP_OK, response);
1830 MHD_destroy_response (response); 1831 MHD_destroy_response (response);