Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

debug_request: do not mess with HTTP_HOST header #22

Closed
wants to merge 1 commit into from

Conversation

blueyed
Copy link

@blueyed blueyed commented Sep 13, 2017

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.
@tomchristie
Copy link
Contributor

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

@blueyed blueyed deleted the fix-debug_request-http_host branch February 15, 2018 13:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants