Revolyssup commented on code in PR #10066:
URL: https://github.com/apache/apisix/pull/10066#discussion_r1303481201


##########
apisix/init.lua:
##########
@@ -358,7 +358,15 @@ local function verify_https_client(ctx)
         return true
     end
 
-    local matched_ssl = ngx.ctx.matched_ssl
+    local host = ctx.var.host
+    if not ctx.matched_ssl then

Review Comment:
   Also, when changing on just this line 
https://github.com/apache/apisix/pull/10066/files#diff-7439ffe94cc4bcad12066d5d83f6c1004b8e9b3ff5097b645fa7c700eb3b3743R363,
 we get an error because after the if block we still try to access 
`matched_ssl` from `api_ctx` so I made changes below as well to extract from 
`ngx.ctx`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to