From a8ccbc46590a6ec9e90a911ec4e3784891f68f86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20P=C3=ADsa=C5=99?= Date: Sun, 15 Jul 2012 12:03:10 +0200 Subject: [PATCH] test: unify SOAP response path in server --- test/simline/server.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/simline/server.c b/test/simline/server.c index f811bd8..8f65000 100644 --- a/test/simline/server.c +++ b/test/simline/server.c @@ -113,7 +113,7 @@ char *socket2address(int socket) { } -/* Process ISDS WS ping authorized by cookie */ +/* Process ISDS WS ping */ static void do_ws(int client_socket, const struct http_request *request) { if (request->method != HTTP_METHOD_POST) { http_send_response_400(client_socket, @@ -162,8 +162,7 @@ void server_basic_authentication(int server_socket, switch(http_authenticate_basic(request, arguments->username, arguments->password)) { case HTTP_ERROR_SUCCESS: - http_send_response_200(client_socket, - pong, strlen(pong), soap_mime_type); + do_ws(client_socket, request); break; case HTTP_ERROR_CLIENT: if (arguments->isds_deviations) @@ -178,8 +177,7 @@ void server_basic_authentication(int server_socket, http_send_response_401_basic(client_socket); } } else { - http_send_response_200(client_socket, - pong, strlen(pong), soap_mime_type); + do_ws(client_socket, request); } } else { /* HTTP method unsupported per ISDS specification */ -- 2.11.4.GIT