Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
luna committed Aug 9, 2023
1 parent 069b6c2 commit 2d10759
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions clients/src/websocket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,13 @@ pub async fn get_client_generated_tls(
format!("Failed to Parse Header Name chia-client-cert,\r\n {}", e),
)
})?,
HeaderValue::from_str(encode(&String::from_utf8(cert_bytes).unwrap_or_default()).as_ref()).map_err(|e| {
Error::new(
ErrorKind::InvalidData,
format!("Failed to Parse Header value CHIA_CA_CRT,\r\n {}", e),
)
})?,
HeaderValue::from_str(encode(&String::from_utf8(cert_bytes).unwrap_or_default()).as_ref())
.map_err(|e| {
Error::new(
ErrorKind::InvalidData,
format!("Failed to Parse Header value CHIA_CA_CRT,\r\n {}", e),
)
})?,
);
if let Some(m) = additional_headers {
for (k, v) in m {
Expand Down

0 comments on commit 2d10759

Please sign in to comment.