diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2017-12-03 21:36:15 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2017-12-30 22:49:16 +0500 |
commit | 951a55128ea3382a923d2cc2f5694ec4e3aaa793 (patch) | |
tree | 92cdfd7c21f33cf1e935463a047a77bab699eace /accel-pppd/ctrl/sstp | |
parent | c6ec453152b28ca78031145b96a21669908085d1 (diff) | |
download | accel-ppp-951a55128ea3382a923d2cc2f5694ec4e3aaa793.tar.gz accel-ppp-951a55128ea3382a923d2cc2f5694ec4e3aaa793.zip |
sstp: use HTTP status code 510 for HTTP method errors
Diffstat (limited to 'accel-pppd/ctrl/sstp')
-rw-r--r-- | accel-pppd/ctrl/sstp/sstp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c index cb1cdfe1..c6b18139 100644 --- a/accel-pppd/ctrl/sstp/sstp.c +++ b/accel-pppd/ctrl/sstp/sstp.c @@ -592,7 +592,7 @@ static int http_recv_request(struct sstp_conn_t *conn) goto error; } if (strcmp(method, SSTP_HTTP_METHOD) != 0) { - http_send_response(conn, proto, "405 Method Not Allowed", NULL); + http_send_response(conn, proto, "501 Not Implemented", NULL); goto error; } if (strcmp(request, SSTP_HTTP_URI) != 0) { |