summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2018-06-03 23:29:19 +0500
committerVladislav Grishenko <themiron@mail.ru>2018-06-03 23:29:19 +0500
commita7d641243bd154fce02ee2b2bbc2d710f6719d21 (patch)
tree0bfea6d5a408be566b699d300bd8ed1b1e3f03a2 /accel-pppd/ctrl
parentb990f248e336eff6e787356ed6d393ca8222374a (diff)
downloadaccel-ppp-a7d641243bd154fce02ee2b2bbc2d710f6719d21.tar.gz
accel-ppp-a7d641243bd154fce02ee2b2bbc2d710f6719d21.zip
sstp: use generic HTTP/1.0 error codes for better compatibility
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/sstp/sstp.c4
1 files changed, 2 insertions, 2 deletions
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;
}