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

Allow to override User-Agent and Host HTTP headers #1426

Merged
merged 2 commits into from
Aug 11, 2016

Conversation

marcelstoer
Copy link
Member

@marcelstoer marcelstoer commented Jul 31, 2016

Fixes #1410.

  • This PR is compliant with the contributing guidelines (if not, please describe why).
  • I have thoroughly tested my contribution.
  • The code changes are reflected in the documentation at docs/en/*.

I tested individual requests with and without overridden headers against http://httpbin.org/get.

Side note: it's the first time since I finished uni centuries ago that I wrote C code, something which I then swore I'd never do again. Due to #1168 I find it a pain to edit existing files w/o breaking white spaces (the IDE would fix them for me and I need to revert).

@marcelstoer
Copy link
Member Author

I need to correct this as it'd undo #1362 I just realized.

@marcelstoer
Copy link
Member Author

I weaved the changes back in but didn't squash the commits so a reviewer can see the difference.

@marcelstoer marcelstoer added this to the Post-1.5.4.1 milestone Aug 4, 2016
@jmattsson jmattsson merged commit 567b0a5 into nodemcu:dev Aug 11, 2016
@jmattsson
Copy link
Member

Looks good to me. Welcome back into C land, Marcel :D

@marcelstoer marcelstoer deleted the dev-http-headers branch August 11, 2016 04:56
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.

None yet

2 participants