From 47c945b101a01bf438024ede594b3a039c4eca66 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 21 Mar 2017 10:19:08 +0100 Subject: fix: 404 on key request with non html content-type --- config/routes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.3