diff options
author | Azul <azul@riseup.net> | 2017-03-21 10:19:08 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-03-21 10:31:16 +0100 |
commit | 47c945b101a01bf438024ede594b3a039c4eca66 (patch) | |
tree | f2eae1401adccf77cb244d0b642f7ee66f3d1a46 /config | |
parent | 3fd52ccca46310c32ecfabb69b41630cb41dca7e (diff) |
fix: 404 on key request with non html content-type
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index de328db..d3d2cec 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -61,6 +61,8 @@ LeapWeb::Application.routes.draw do get "/.well-known/host-meta" => 'webfinger#host_meta' get "/webfinger" => 'webfinger#search' - get "/key/:login" => 'keys#show', :constraints => { :login => /[^\/]+/ } + get "/key/:login" => 'keys#show', + :constraints => { :login => /[^\/]+/ }, + :defaults => { :format => :text } end |