Skip to content

Commit

Permalink
Fixed srv.DefaultRoute.
Browse files Browse the repository at this point in the history
  • Loading branch information
vifino committed Dec 8, 2015
1 parent 8695ab8 commit 24100a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion builtin/libs/wrappers/srv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ M.finish_handler = function(type, path, h)
table.insert(M._vhosts[type][path][M.vhost], h)
end
else
carbon.srv[type](path, h)
if type == "Default" then
carbon.srv.NoRoute(h)
else
carbon.srv[type](path, h)
end
end
end

Expand Down
4 changes: 2 additions & 2 deletions modules/glue/generated_lua.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 24100a1

Please sign in to comment.