Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert #457 "Support show_env param in /headers" #492

Merged

Conversation

javabrett
Copy link
Contributor

@javabrett javabrett commented Jul 25, 2018

Reverts #457. Fixes #487.

The docstring typo fixes are retained, along with the additional tests,
modified to revert to the original "headers": { dict format.

The reverted change get_dict('headers') -> get_headers() was not required. The
query-string ?show_env=1 was already effective in allowing env headers to be
returned.

This partially reverts commit 31ffe79.

That this change was not required (other than the tests, thanks) was hinted-at by @nateprewitt in the review for #457:

I'm not sure if get_dict change is needed, although it probably won't hurt anything either. I'd definitely like to see the tests merged at the least though.

In fact the show_env pass-through option for filtered env headers has been there since that feature was added in bb094d4 .

@sanketsaurav please chime-in here if this analysis seems off. Your PR might have fixed something for you. /cc @Fishbowler .

…s#457. Fixed postmanlabs#487.

The docstring typo fixes are retained, along with the additional tests,
modified to revert to the original "headers": { dict format.

The reverted change get_dict('headers') -> get_headers() was not required. The
query-string ?show_env=1 was already effective in allowing env headers to be
returned.

This partially reverts commit 31ffe79.
@javabrett javabrett changed the title Revert "Support show_env param in /headers" Revert #457 "Support show_env param in /headers" Jul 25, 2018
@sanketsaurav
Copy link
Contributor

Hi @javabrett,

Yes, your analysis is accurate indeed. I guess we can revert the change to the view logic if we need to retain the existing dict format. I guess we missed that while discussing on my PR the last time around.

@Fishbowler
Copy link

👍

@kennethreitz kennethreitz merged commit 16f408a into postmanlabs:master Jul 25, 2018
@kennethreitz
Copy link
Contributor

✨🍰✨

@kennethreitz
Copy link
Contributor

deployed.

@javabrett javabrett deleted the 487-headers-dict-revert-457 branch July 25, 2018 13:29
virgiliojr94 pushed a commit to virgiliojr94/httpbin-chat2desk that referenced this pull request Jul 1, 2023
…vert-457

Revert postmanlabs#457 "Support `show_env` param in `/headers`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Different results for /headers between docker and httpbin.org
4 participants