]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mux_fcgi: remove dependency on ssl_sock
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 09:40:11 +0000 (11:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:36:51 +0000 (01:36 +0200)
It's not needed anymore (used to be needed for ssl_sock_is_ssl()).

src/mux_fcgi.c

index 5ddcd4c3665dca85302f8a7393fdd76c858e4aa6..3c030210223601f4e3278d8f4d0f4d10af41a98c 100644 (file)
@@ -30,7 +30,6 @@
 #include <haproxy/proxy.h>
 #include <haproxy/regex.h>
 #include <haproxy/session-t.h>
-#include <haproxy/ssl_sock.h>
 #include <haproxy/stream.h>
 #include <haproxy/stream_interface.h>
 #include <haproxy/trace.h>
@@ -1321,12 +1320,12 @@ static int fcgi_set_default_param(struct fcgi_conn *fconn, struct fcgi_strm *fst
                params->cont_len = ist2(b_tail(params->p), end - b_tail(params->p));
                params->p->data += params->cont_len.len;
        }
-#ifdef USE_OPENSSL
+
        if (!(params->mask & FCGI_SP_HTTPS)) {
                if (cli_conn)
                        params->https = conn_is_ssl(cli_conn);
        }
-#endif
+
        if ((params->mask & FCGI_SP_URI_MASK) != FCGI_SP_URI_MASK) {
                /* one of scriptname, pathinfo or query_string is no set */
                struct http_uri_parser parser = http_uri_parser_init(params->uri);