Merge branch 'master' of github.com:Start9Labs/start-os into next/patch

This commit is contained in:
Aiden McClelland
2024-06-03 10:06:46 -06:00
2 changed files with 5 additions and 1 deletions

View File

@@ -48,7 +48,8 @@
<br /> <br />
## Running StartOS ## Running StartOS
There are multiple ways to get started with StartOS: > [!WARNING]
> StartOS is in beta. It lacks features. It doesn't always work perfectly. Start9 servers are not plug and play. Using them properly requires some effort and patience. Please do not use StartOS or purchase a server if you are unable or unwilling to follow instructions and learn new concepts.
### 💰 Buy a Start9 server ### 💰 Buy a Start9 server
This is the most convenient option. Simply [buy a server](https://store.start9.com) from Start9 and plug it in. This is the most convenient option. Simply [buy a server](https://store.start9.com) from Start9 and plug it in.

View File

@@ -71,12 +71,14 @@ async fn do_upload(
mut url: Url, mut url: Url,
user: &str, user: &str,
pass: &str, pass: &str,
pkg_id: &str,
body: Body, body: Body,
) -> Result<(), Error> { ) -> Result<(), Error> {
url.set_path("/admin/v0/upload"); url.set_path("/admin/v0/upload");
let req = httpc let req = httpc
.post(url) .post(url)
.header(header::ACCEPT, "text/plain") .header(header::ACCEPT, "text/plain")
.query(&[("id", pkg_id)])
.basic_auth(user, Some(pass)) .basic_auth(user, Some(pass))
.body(body) .body(body)
.build()?; .build()?;
@@ -178,6 +180,7 @@ pub async fn publish(
registry.clone(), registry.clone(),
&user, &user,
&pass, &pass,
&pkg.id,
Body::wrap_stream(file_stream), Body::wrap_stream(file_stream),
) )
.await?; .await?;