Commit 650abd10 authored by Deucе's avatar Deucе 👌🏾
Browse files

Add a "scheme" property to http_request object

Value is "http" or "https" depending on if TLS is in use.
parent dbc10c0f
Pipeline #3616 passed with stage
in 6 minutes and 24 seconds
......@@ -3475,6 +3475,7 @@ static BOOL exec_js_webctrl(http_session_t* session, char *name, char* script, c
}
JS_BEGINREQUEST(session->js_cx);
js_add_request_prop(session,"scheme", session->is_tls ? "https" : "http");
js_add_request_prop(session,"real_path",session->req.physical_path);
js_add_request_prop(session,"virtual_path",session->req.virtual_path);
js_add_request_prop(session,"ars",session->req.ars);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment