Get relevant incident, fix config bug

- Make generic makeRequest fn
This commit is contained in:
Matej Kramny
2015-03-20 19:10:29 +01:00
parent f5826d7832
commit 8e17ebceef
5 changed files with 73 additions and 38 deletions

View File

@@ -26,8 +26,8 @@ func init() {
var data []byte
// test if its a url
_, err := url.ParseRequestURI(configPath)
if err == nil {
url, err := url.ParseRequestURI(configPath)
if err == nil && len(url.Scheme) > 0 {
// download config
response, err := http.Get(configPath)
if err != nil {