From 3f5374901e80cf18b5cb00c5d341be63efadc810 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 13 Dec 2011 10:45:40 +0000 Subject: [PATCH] Allow generic URIs to use the registry format This should stop OAuth complaining when it tries to parse a mapzen callback URI of the form mapzen://osm_callback --- config/initializers/uri.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 config/initializers/uri.rb diff --git a/config/initializers/uri.rb b/config/initializers/uri.rb new file mode 100644 index 000000000..235ed6305 --- /dev/null +++ b/config/initializers/uri.rb @@ -0,0 +1,4 @@ +# Allow generic URIs to use the registry format +silence_warnings do + URI::Generic::USE_REGISTRY = true +end -- 2.43.2