From a7d641243bd154fce02ee2b2bbc2d710f6719d21 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Sun, 3 Jun 2018 23:29:19 +0500 Subject: sstp: use generic HTTP/1.0 error codes for better compatibility --- accel-pppd/ctrl/sstp/sstp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c index 68bec394..2fc26623 100644 --- a/accel-pppd/ctrl/sstp/sstp.c +++ b/accel-pppd/ctrl/sstp/sstp.c @@ -873,12 +873,12 @@ static int http_recv_request(struct sstp_conn_t *conn, uint8_t *data, int len) } if (strncasecmp(proto, "HTTP/1", sizeof("HTTP/1") - 1) != 0) { if (conf_http_mode) - http_send_response(conn, "HTTP/1.1", "505 HTTP Version Not Supported", NULL); + http_send_response(conn, "HTTP/1.1", "400 Bad Request", NULL); return -1; } if (strcasecmp(method, SSTP_HTTP_METHOD) != 0 && strcasecmp(method, "GET") != 0) { if (conf_http_mode) - http_send_response(conn, proto, "405 Method Not Allowed", NULL); + http_send_response(conn, proto, "501 Not Implemented", NULL); return -1; } -- cgit v1.2.3