mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-19 07:53:54 +01:00
@@ -649,7 +649,13 @@ pub enum JsonPrimitive {
|
||||
pub struct CallHttpAuthenticationResponse {
|
||||
/// HTTP headers to add to the request. Existing headers will be replaced, while
|
||||
/// new headers will be added.
|
||||
pub set_headers: Vec<HttpHeader>,
|
||||
#[ts(optional)]
|
||||
pub set_headers: Option<Vec<HttpHeader>>,
|
||||
|
||||
/// Query parameters to add to the request. Existing params will be replaced, while
|
||||
/// new params will be added.
|
||||
#[ts(optional)]
|
||||
pub set_query_parameters: Option<Vec<HttpHeader>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]
|
||||
|
||||
@@ -643,7 +643,8 @@ impl PluginManager {
|
||||
if disabled {
|
||||
info!("Not applying disabled auth {:?}", auth_name);
|
||||
return Ok(CallHttpAuthenticationResponse {
|
||||
set_headers: Vec::new(),
|
||||
set_headers: None,
|
||||
set_query_parameters: None
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user