summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2017-03-21 09:37:29 +0000
committerazul <azul@riseup.net>2017-03-21 09:37:29 +0000
commit987d1bf7c87f7ea3d17c40015b2ec92a8a0b4ecc (patch)
treef2eae1401adccf77cb244d0b642f7ee66f3d1a46 /config
parent3fd52ccca46310c32ecfabb69b41630cb41dca7e (diff)
parent47c945b101a01bf438024ede594b3a039c4eca66 (diff)
Merge branch 'bugfix/404-for-keys-on-text-request' into 'master'
fix: 404 on key request with non html content-type Closes #8 See merge request !20
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
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