~dancek/twinwiki-devel

Fix duplicate "30" in response header v1 PROPOSED

Frederick Yin: 1
 Fix duplicate "30" in response header

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~dancek/twinwiki-devel/patches/11957/mbox | git am -3
Learn more about email & git

[PATCH] Fix duplicate "30" in response header Export this patch

---
 src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index a58f84e..951f4f1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -243,7 +243,7 @@ fn redirect_response(page: &str, subpath: &str) {
    let url = absolute_url(page);
    match subpath {
        "" => response_header(30, url),
        _ => response_header(30, format!("30 {}/{}", url, subpath)),
        _ => response_header(30, format!("{}/{}", url, subpath)),
    }
}

-- 
2.28.0