Skip to content

Commit 99018e2

Browse files
authored
chore: Prepare for release (#100)
1 parent f3ce70e commit 99018e2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "app-store-server-library"
33
description = "The Rust server library for the App Store Server API, App Store Server Notifications and Advanced Commerce API"
4-
version = "4.1.2"
4+
version = "4.1.3"
55
repository = "https://github.com/namecare/app-store-server-library-rust"
66
homepage = "https://github.com/namecare/app-store-server-library-rust"
77
authors = ["tkhp", "namecare"]
@@ -27,7 +27,7 @@ sha1 = { version = "0.10.6" }
2727
# Serialization
2828
serde = { version = "1.0.228", features = ["derive"] }
2929
serde_json = { version = "1.0.145" }
30-
serde_with = { version = "3.15.1", features = ["chrono"] }
30+
serde_with = { version = "3.16.0", features = ["chrono"] }
3131
serde_repr = "0.1.20"
3232
uuid = { version = "1.18.1", features = ["serde", "v4"] }
3333
chrono = { version = "0.4.42", features = ["serde"] }

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Specify `app-store-server-library` in your project's `Cargo.toml` file, under th
1111

1212
```toml
1313
[dependencies]
14-
app-store-server-library = { version = "4.1.2", features = ["receipt-utility", "api-client", "ocsp"] }
14+
app-store-server-library = { version = "4.1.3", features = ["receipt-utility", "api-client", "ocsp"] }
1515
```
1616

1717
### Feature Flags
@@ -121,7 +121,7 @@ To enable OCSP verification:
121121

122122
```toml
123123
[dependencies]
124-
app-store-server-library = { version = "4.1.2", features = ["ocsp"] }
124+
app-store-server-library = { version = "4.1.3", features = ["ocsp"] }
125125
```
126126

127127
OCSP verification is performed automatically when verifying signed data.

src/api_client/api_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<T: Transport, API, E: APIServiceErrorCode + DeserializeOwned> ApiClient<T,
133133
let mut request_builder = Request::builder()
134134
.method(method)
135135
.uri(url)
136-
.header("User-Agent", "app-store-server-library/rust/4.1.2")
136+
.header("User-Agent", "app-store-server-library/rust/4.1.3")
137137
.header("Authorization", format!("Bearer {}", self.generate_token()))
138138
.header("Accept", "application/json");
139139

src/chain_verifier_ocsp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl ChainVerifier {
171171

172172
let response_bytes = ocsp_response
173173
.response_bytes
174-
.ok_or(OcspError::ValidationError)?;
174+
.ok_or_else(|| OcspError::ValidationError)?;
175175

176176
const ID_PKIX_OCSP_BASIC: &str = "1.3.6.1.5.5.7.48.1.1";
177177
if response_bytes.response_type.to_string() != ID_PKIX_OCSP_BASIC {

0 commit comments

Comments
 (0)