mirror of
https://github.com/ohwgiles/laminar.git
synced 2025-06-13 12:54:29 +00:00
Make sure that we're serving up the right markup all the time
This commit is contained in:
parent
0dd0e1c9d8
commit
b619635d45
@ -248,7 +248,7 @@ kj::Promise<void> 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();
|
||||
|
Loading…
Reference in New Issue
Block a user