aboutsummaryrefslogtreecommitdiff
path: root/src/lib/response_for_upgrade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/response_for_upgrade.c')
-rw-r--r--src/lib/response_for_upgrade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/response_for_upgrade.c b/src/lib/response_for_upgrade.c
index 90e361b6..5de6518b 100644
--- a/src/lib/response_for_upgrade.c
+++ b/src/lib/response_for_upgrade.c
@@ -77,11 +77,11 @@ MHD_response_for_upgrade (MHD_UpgradeHandler upgrade_handler,
77 response->total_size = MHD_SIZE_UNKNOWN; 77 response->total_size = MHD_SIZE_UNKNOWN;
78 response->reference_count = 1; 78 response->reference_count = 1;
79 if (MHD_NO == 79 if (MHD_NO ==
80 MHD_add_response_header (response, 80 MHD_response_add_header (response,
81 MHD_HTTP_HEADER_CONNECTION, 81 MHD_HTTP_HEADER_CONNECTION,
82 "Upgrade")) 82 "Upgrade"))
83 { 83 {
84 MHD_destroy_response (response); 84 MHD_response_queue_for_destroy (response);
85 return NULL; 85 return NULL;
86 } 86 }
87 return response; 87 return response;