Skip to content

Commit

Permalink
Fix API version sent in wrong header
Browse files Browse the repository at this point in the history
No verification is actually done without this fix.
  • Loading branch information
jpraynaud committed Jan 25, 2023
1 parent df6024f commit 5311b29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mithril-client/src/aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl AggregatorHTTPClient {

/// Forge a client request adding protocol version in the headers.
pub fn prepare_request_builder(&self, request_builder: RequestBuilder) -> RequestBuilder {
request_builder.header("API_VERSION", MITHRIL_API_VERSION)
request_builder.header("mithril-api-version", MITHRIL_API_VERSION)
}

/// Download certificate details
Expand Down
2 changes: 1 addition & 1 deletion mithril-signer/src/certificate_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl CertificateHandlerHTTPClient {

/// Forge a client request adding protocol version in the headers.
pub fn prepare_request_builder(&self, request_builder: RequestBuilder) -> RequestBuilder {
request_builder.header("API_VERSION", MITHRIL_API_VERSION)
request_builder.header("mithril-api-version", MITHRIL_API_VERSION)
}

/// API version error handling
Expand Down

0 comments on commit 5311b29

Please sign in to comment.