Skip to content

Commit

Permalink
Updated for alpha4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Feb 13, 2024
1 parent 8c6067f commit 34b1355
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ gloo = "0.11.0"
js-sys = "0.3"
p256 = {version = "0.13", features = ["ecdsa"]}
serde_json = "1.0.107"
spansy = {git = "https://github.com/sinui0/spansy", rev = "becb33d"}
tlsn-core = {git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.3", package = "tlsn-core"}
spansy = {git = "https://github.com/tlsnotary/tlsn-utils", rev = "51f313d"}
tlsn-core = {git = "https://github.com/tlsnotary/tlsn.git", tag = "v0.1.0-alpha.4", package = "tlsn-core"}
wasm-bindgen = "0.2.89"
wasm-logger = "0.2.0"
web-sys = {version = "0.3", features = ["File", "DragEvent", "DataTransfer"]}
Expand Down
4 changes: 3 additions & 1 deletion src/components/content_iframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ fn get_content_type(bytes: &[u8]) -> (ContentType, String) {
// log!(format!("Test {:?}", x.headers));

let content_type = (&x)
.header("Content-Type")
.headers
.iter()
.find(|h| h.name.as_str().to_lowercase() == "content-type")
.map_or(ContentType::Other, |header| {
let type_string = String::from_utf8_lossy(header.value.as_bytes());
match type_string {
Expand Down
4 changes: 2 additions & 2 deletions src/components/view_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn ViewFile(props: &Props) -> Html {
// The session header that was signed by the Notary is a succinct commitment to the TLS transcript.
header,
// This is the server name, checked against the certificate chain shared in the TLS handshake.
server_name,
session_info,
..
} = session;

Expand Down Expand Up @@ -112,7 +112,7 @@ pub fn ViewFile(props: &Props) -> Html {
<div class="p-4 w-5/6">
<b>{"Server domain:" }</b>
<div class="bg-black text-white p-4 rounded-md">
<pre>{server_name.as_str().to_string()}</pre>
<pre>{session_info.server_name.as_str().to_string()}</pre>
</div>
<b>{"Notarization time:" }</b>
<div class="bg-black text-white p-4 rounded-md">
Expand Down

0 comments on commit 34b1355

Please sign in to comment.