I quite don't like this way of creating requests. What about this way?

```python
def get_current_host():
    return urlparse(env['base_url']).netloc

requests.get(
    "http://{}:{}/resetall".format(get_current_host(), port)
)
```