summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2017-12-03 21:36:15 +0500
committerVladislav Grishenko <themiron@mail.ru>2017-12-30 22:49:16 +0500
commit951a55128ea3382a923d2cc2f5694ec4e3aaa793 (patch)
tree92cdfd7c21f33cf1e935463a047a77bab699eace /accel-pppd
parentc6ec453152b28ca78031145b96a21669908085d1 (diff)
downloadaccel-ppp-xebd-951a55128ea3382a923d2cc2f5694ec4e3aaa793.tar.gz
accel-ppp-xebd-951a55128ea3382a923d2cc2f5694ec4e3aaa793.zip
sstp: use HTTP status code 510 for HTTP method errors
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/sstp/sstp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c
index cb1cdfe..c6b1813 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) {