From 1bf534037169274a4d27b72fc0639fe87eefb3ca Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Wed, 28 Feb 2018 21:46:37 +0500 Subject: sstp: http: change method error from 501 to 405 --- accel-pppd/ctrl/sstp/sstp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c index 68d8ddf8..691928b0 100644 --- a/accel-pppd/ctrl/sstp/sstp.c +++ b/accel-pppd/ctrl/sstp/sstp.c @@ -859,7 +859,7 @@ static int http_recv_request(struct sstp_conn_t *conn, uint8_t *data, int len) goto error; } if (strcasecmp(method, SSTP_HTTP_METHOD) != 0) { - http_send_response(conn, proto, "501 Not Implemented", NULL); + http_send_response(conn, proto, "405 Method Not Allowed", NULL); goto error; } if (strcasecmp(request, SSTP_HTTP_URI) != 0) { -- cgit v1.2.3