1
0
mirror of https://github.com/pcvolkmer/mv64e-kafka-to-rest-gateway synced 2025-09-13 09:12:52 +00:00

feat: do not use empty username or password

This commit is contained in:
2025-09-06 13:07:38 +02:00
parent 96e6a8d9b7
commit 700eac1078

View File

@@ -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()