Added missing slash to LYCHEE_ENPOINT concatenation
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
603e8127f9
commit
503323aac9
@ -11,7 +11,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||||||
let client = Client::builder().build::<_, hyper::Body>(https);
|
let client = Client::builder().build::<_, hyper::Body>(https);
|
||||||
let req = Request::builder()
|
let req = Request::builder()
|
||||||
.method(Method::POST)
|
.method(Method::POST)
|
||||||
.uri(dotenv::var("LYCHEE_ENDPOINT").unwrap() + "api/Session::init")
|
.uri(dotenv::var("LYCHEE_ENDPOINT").unwrap() + "/api/Session::init")
|
||||||
.body(Body::empty())
|
.body(Body::empty())
|
||||||
.expect("error");
|
.expect("error");
|
||||||
let res = client.request(req).await?;
|
let res = client.request(req).await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user