You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
380 B
11 lines
380 B
6 years ago
|
--- a/session.c
|
||
|
+++ b/session.c
|
||
3 years ago
|
@@ -2376,6 +2376,7 @@
|
||
|
unsigned char *proto = get_protocol_name(rq->url);
|
||
|
int ret = 0;
|
||
|
if (!proto) return 0;
|
||
6 years ago
|
+ if (a->accept_http && !casestrcmp(proto, cast_uchar "https")) ret = 1;
|
||
3 years ago
|
if (a->accept_http && !casestrcmp(proto, cast_uchar "http")) ret = 1;
|
||
|
if (a->accept_ftp && !casestrcmp(proto, cast_uchar "ftp")) ret = 1;
|
||
|
mem_free(proto);
|