We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44863ed commit c9e1c37Copy full SHA for c9e1c37
src/dist.rs
@@ -39,7 +39,7 @@ impl Handler for Middleware {
39
// serve up that page. Otherwise proxy on to the rest of the app.
40
let wants_html = req.headers().find("Accept").map(|accept| {
41
accept.iter().any(|s| s.contains("html"))
42
- }).unwrap_or(false);
+ }).unwrap_or(true); // If no Accept header is specified, serve up html.
43
if wants_html {
44
self.dist.call(&mut RequestProxy {
45
other: req,
0 commit comments