Skip to content

Commit

Permalink
feat: use semantic versioning instead
Browse files Browse the repository at this point in the history
  • Loading branch information
speed2exe committed Jan 30, 2024
1 parent 470ddb8 commit 719d579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/client-api/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use url::Url;
use gotrue_entity::dto::SignUpResponse::{Authenticated, NotAuthenticated};
use gotrue_entity::dto::{GotrueTokenResponse, UpdateGotrueUserParams, User};

pub const CLIENT_API_VERSION: Option<&'static str> = std::option_env!("GITHUB_SHA");
pub const CLIENT_API_VERSION: &str = "0.0.3";
pub const X_COMPRESSION_TYPE: &str = "X-Compression-Type";
pub const X_COMPRESSION_BUFFER_SIZE: &str = "X-Compression-Buffer-Size";
pub const X_COMPRESSION_TYPE_BROTLI: &str = "brotli";
Expand Down Expand Up @@ -1178,7 +1178,7 @@ impl Client {
let request_builder = self
.cloud_client
.request(method, url)
.header("client-version", CLIENT_API_VERSION.unwrap_or("unknown"))
.header("client-version", CLIENT_API_VERSION)
.header("client-timestamp", ts_now.to_string())
.bearer_auth(access_token);
Ok(request_builder)
Expand Down

0 comments on commit 719d579

Please sign in to comment.