Commit ada79e4
authored
host requires protocol to be included (#262)
If the http or https protocol is not prefixed, the following error will be thrown:
```sh
ruby examples/example.rb
```
```
~/discourse_api/config.yml
~/discourse_api/lib/discourse_api/client.rb:193:in `check_subdirectory': undefined method `request_uri' for an instance of URI::Generic (NoMethodError)
URI(host).request_uri != "/"
^^^^^^^^^^^^
from ~/discourse_api/lib/discourse_api/client.rb:63:in `initialize'
from examples/example.rb:7:in `new'
```1 parent 969f360 commit ada79e4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments