Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
7905faa411 | |||
838414f9d6 |
3 changed files with 8 additions and 8 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -34,7 +34,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "api-backend"
|
name = "api-backend"
|
||||||
version = "0.0.7"
|
version = "0.0.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
authors = ["Neshura"]
|
authors = ["Neshura"]
|
||||||
name = "api-backend"
|
name = "api-backend"
|
||||||
version = "0.0.7"
|
version = "0.0.8"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "API Backend For Easier Uploading To Kavita"
|
description = "API Backend For Easier Uploading To Kavita"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
|
|
|
@ -214,7 +214,7 @@ async fn upload_file(state: &mut App, request: Request) {
|
||||||
|
|
||||||
let res = client
|
let res = client
|
||||||
.post(url)
|
.post(url)
|
||||||
.bearer_auth(auth.token)
|
.header(reqwest::header::AUTHORIZATION, auth.token)
|
||||||
.body(body)
|
.body(body)
|
||||||
.send()
|
.send()
|
||||||
.await;
|
.await;
|
||||||
|
|
Loading…
Reference in a new issue