From b619635d45386f976e19103e273b31795b277446 Mon Sep 17 00:00:00 2001 From: Cameron Eagans Date: Tue, 3 Mar 2020 11:48:54 -0700 Subject: [PATCH] Make sure that we're serving up the right markup all the time --- src/http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.cpp b/src/http.cpp index 08fd338..7db8fd6 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -248,7 +248,7 @@ kj::Promise Http::request(kj::HttpMethod method, kj::StringPtr url, const } // If there is custom html defined, serve it. Otherwise, the default html // will be served by the next block. - if(url == "/index.html" || url == "/") { + if(url == "/" || url == "/index.html" || url.startsWith("/jobs")) { responseHeaders.set(kj::HttpHeaderId::CONTENT_TYPE, "text/html; charset=utf-8"); responseHeaders.add("Content-Transfer-Encoding", "binary"); std::string html = laminar.getCustomIndexHtml();