Running `http.server` returning `ERR_EMPTY_RESPONSE` in Python

Add a binding to localhost when running:

python -m http.server 8000 --bind localhost

Related: