Skip to content
Snippets Groups Projects
Commit fbbf6239 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add a "scheme" property to http_request object

Value is "http" or "https" depending on if TLS is in use.
parent 5c7a22f2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment