core-api / coreapi-cli

An interactive command line client for Core API.
Other
16 stars 5 forks source link

debug_request: do not mess with HTTP_HOST header #22

Closed blueyed closed 6 years ago

blueyed commented 7 years ago

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.

tomchristie commented 6 years ago

Brill thanks! Alternative fix at #26. Really appreciate your time! 😄