Skip to content

src/types.rs: fix complete_challenge() for non-standalone mode#29

Merged
1c3t3a merged 1 commit intokariustobias:mainfrom
trofi:fix-non-standalone
May 6, 2024
Merged

src/types.rs: fix complete_challenge() for non-standalone mode#29
1c3t3a merged 1 commit intokariustobias:mainfrom
trofi:fix-non-standalone

Conversation

@trofi
Copy link
Contributor

@trofi trofi commented Oct 20, 2023

Path::join throws away prefix if apppended path is an absolute path:

$ evcxr
>> std::path::Path::new("/a").join("/b")
"/b"

As a result non-standalone mode failed to create absolute /.well-known/acme-challenge path and failed.

The change creates it within WEB_ROOT prefix.

`Path::join` throws away prefix if apppended path is an absolute path:

    $ evcxr
    >> std::path::Path::new("/a").join("/b")
    "/b"

As a result non-standalone mode failed to create absolute
`/.well-known/acme-challenge` path and failed.

The change creates it within `WEB_ROOT` prefix.
@1c3t3a
Copy link
Collaborator

1c3t3a commented May 6, 2024

Better late than never! This LGTM :) Thanks for the fix.

@1c3t3a 1c3t3a merged commit 39bdad3 into kariustobias:main May 6, 2024
@trofi trofi deleted the fix-non-standalone branch May 6, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments