Initial stabilization #1

Merged
dzu merged 22 commits from stabilize-v1 into main 2026-02-21 04:54:42 +01:00
Showing only changes of commit af385b3f82 - Show all commits

fix: add upload headers
All checks were successful
Build and update the action / build-and-upload (push) Successful in 2m37s

Artem Diachenko 2026-02-17 20:38:15 +00:00

View file

@ -6,7 +6,7 @@ use isahc::{
HttpClient, HttpClientBuilder, Request, HttpClient, HttpClientBuilder, Request,
auth::{Authentication, Credentials}, auth::{Authentication, Credentials},
config::Configurable, config::Configurable,
http::{Method, StatusCode}, http::{Method, StatusCode, header},
}; };
use secrecy::{ExposeSecret, SecretString}; use secrecy::{ExposeSecret, SecretString};
use tar::{Builder, HeaderMode}; use tar::{Builder, HeaderMode};
@ -141,6 +141,11 @@ impl Client {
let request = Request::builder() let request = Request::builder()
.uri(uri) .uri(uri)
.method(Method::PATCH) .method(Method::PATCH)
.header(header::CONTENT_TYPE, "application/octet-stream")
.header(
header::CONTENT_RANGE,
format!("bytes {}-{}/*", 0, archive.len()),
)
.body(archive) .body(archive)
.context("building the request")?; .context("building the request")?;
let mut response = self let mut response = self