]> git.openstreetmap.org Git - rails.git/commitdiff
Allow generic URIs to use the registry format
authorTom Hughes <tom@compton.nu>
Tue, 13 Dec 2011 10:45:40 +0000 (10:45 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 13 Dec 2011 10:45:40 +0000 (10:45 +0000)
This should stop OAuth complaining when it tries to parse a mapzen
callback URI of the form mapzen://osm_callback

config/initializers/uri.rb [new file with mode: 0644]

diff --git a/config/initializers/uri.rb b/config/initializers/uri.rb
new file mode 100644 (file)
index 0000000..235ed63
--- /dev/null
@@ -0,0 +1,4 @@
+# Allow generic URIs to use the registry format
+silence_warnings do
+  URI::Generic::USE_REGISTRY = true
+end