10 lines
380 B

--- a/session.c
+++ b/session.c
@@ -2376,6 +2376,7 @@
unsigned char *proto = get_protocol_name(rq->url);
int ret = 0;
if (!proto) return 0;
+ if (a->accept_http && !casestrcmp(proto, cast_uchar "https")) ret = 1;
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);