mirror of
https://github.com/pcvolkmer/mv64e-kafka-to-rest-gateway
synced 2025-09-13 17:22:52 +00:00
feat: do not use empty username or password
This commit is contained in:
@@ -47,8 +47,8 @@ impl HttpClient {
|
|||||||
.client
|
.client
|
||||||
.post(format!("{}/mtb/etl/patient-record", &self.base_url))
|
.post(format!("{}/mtb/etl/patient-record", &self.base_url))
|
||||||
.basic_auth(
|
.basic_auth(
|
||||||
&self.username.clone().unwrap_or_default(),
|
self.username.clone().unwrap_or("anonymous".to_string()),
|
||||||
Some(self.password.clone().unwrap_or_default()),
|
self.password.clone(),
|
||||||
)
|
)
|
||||||
.timeout(Duration::from_secs(5))
|
.timeout(Duration::from_secs(5))
|
||||||
.json(&mtb)
|
.json(&mtb)
|
||||||
@@ -70,8 +70,8 @@ impl HttpClient {
|
|||||||
.client
|
.client
|
||||||
.delete(format!("{}/mtb/etl/patient/{}", &self.base_url, patient_id))
|
.delete(format!("{}/mtb/etl/patient/{}", &self.base_url, patient_id))
|
||||||
.basic_auth(
|
.basic_auth(
|
||||||
&self.username.clone().unwrap_or_default(),
|
self.username.clone().unwrap_or("anonymous".to_string()),
|
||||||
Some(self.password.clone().unwrap_or_default()),
|
self.password.clone(),
|
||||||
)
|
)
|
||||||
.timeout(Duration::from_secs(5))
|
.timeout(Duration::from_secs(5))
|
||||||
.send()
|
.send()
|
||||||
|
Reference in New Issue
Block a user