Running coreapi get http://127.0.0.1:8000/api/schema/ --debug would
set the "host" header to only the hostname ("127.0.0.1"), while it is
supposed to also include the port.
Since it is only meant for display/debug here, also use a copy
of request.headers when changing them.
Running
coreapi get http://127.0.0.1:8000/api/schema/ --debug
would set the "host" header to only the hostname ("127.0.0.1"), while it is supposed to also include the port.Since it is only meant for display/debug here, also use a copy of
request.headers
when changing them.