parent
14d4b9206c
commit
b4caac4d49
2 changed files with 8 additions and 1 deletions
|
@ -978,6 +978,7 @@ header .search_forms,
|
|||
|
||||
.search_results_error {
|
||||
color: #f00;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
/* Rules for routing */
|
||||
|
|
|
@ -286,7 +286,13 @@ class GeocoderController < ApplicationController
|
|||
private
|
||||
|
||||
def fetch_text(url)
|
||||
OSM.http_client.get(URI.parse(url)).body
|
||||
response = OSM.http_client.get(URI.parse(url))
|
||||
|
||||
if response.success?
|
||||
response.body
|
||||
else
|
||||
fail response.status.to_s
|
||||
end
|
||||
end
|
||||
|
||||
def fetch_xml(url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue