mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
Fix endpoint URL
This commit is contained in:
@@ -6,7 +6,7 @@ This is enabled by adding an entry to the node's `config.toml` file:
|
||||
```toml
|
||||
...
|
||||
[[events_observer]]
|
||||
endpoint = "http://listener:3700"
|
||||
endpoint = "listener:3700"
|
||||
events_keys = [
|
||||
"*"
|
||||
]
|
||||
|
||||
@@ -46,7 +46,7 @@ impl EventObserver {
|
||||
};
|
||||
|
||||
let url = {
|
||||
let url = format!("{}{}", &self.endpoint, path);
|
||||
let url = format!("http://{}/{}", &self.endpoint, path);
|
||||
Url::parse(&url).expect(&format!("Unable to parse {} as a URL", url))
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user