Skip to content

Commit ca8bda0

Browse files
fix: Latest cli version support - Handled streaming payload support (#48)
* Added support to handle streaming payload. * Added space at end of file. * Removed commented changes. * Kept cargo files in sync with main.
1 parent 0d50163 commit ca8bda0

File tree

4 files changed

+152
-3
lines changed

4 files changed

+152
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.1.21]
4+
5+
### Bug Fixes
6+
* Fixed the issue related to handling streaming payload.
7+
8+
39
## [0.1.20](https://github.com/source-cooperative/data.source.coop/compare/v0.1.19...v0.1.20) (2024-12-03)
410

511

Cargo.lock

Lines changed: 143 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "source-data-proxy"
33

4-
version = "0.1.20"
4+
version = "0.1.21"
55
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/utils/auth.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ fn create_canonical_request(
271271
content_hash: &str,
272272
) -> String {
273273
let decoded_path = percent_decode_str(path).decode_utf8().unwrap();
274-
if content_hash == "UNSIGNED-PAYLOAD" {
274+
if (content_hash == "STREAMING-UNSIGNED-PAYLOAD-TRAILER") ||
275+
(content_hash == "UNSIGNED-PAYLOAD") {
275276
return format!(
276277
"{}\n{}\n{}\n{}\n{}\n{}",
277278
method,

0 commit comments

Comments
 (0)