Closed JacobCoffee closed 7 months ago
When running other servers they prepend the address with http:// or https://.
http://
https://
With this, inside of the CLI, PyCharm, or ~vscode~ worse editors it allows you to click the link directly.
In https://github.com/emmett-framework/granian/blob/f1849fb9d11af37cffefe6e319d0c11a509888fb/granian/server.py#L410, update:
[INFO] Listening at: 127.0.0.1:8000
to
[INFO] Listening at: http(s)://127.0.0.1:8000
so that it may be clickable.
This is just handy in development.
Background
When running other servers they prepend the address with
http://
orhttps://
.With this, inside of the CLI, PyCharm, or ~vscode~ worse editors it allows you to click the link directly.
Ask
In https://github.com/emmett-framework/granian/blob/f1849fb9d11af37cffefe6e319d0c11a509888fb/granian/server.py#L410, update:
to
so that it may be clickable.
Why
This is just handy in development.