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

Default content type not set correctly #8

Open
alkor97 opened this issue Apr 11, 2018 · 1 comment
Open

Default content type not set correctly #8

alkor97 opened this issue Apr 11, 2018 · 1 comment

Comments

@alkor97
Copy link

alkor97 commented Apr 11, 2018

The following code put in RestClient constructor will not work (by default all member pointers have undefined values, not NULLs):

if (contentType == NULL) {
  contentType = "application/x-www-form-urlencoded";  // default
}

Working solution would be just getting rid of if clause:

contentType = "application/x-www-form-urlencoded";

Observed on WeMos whild sending POST requests.

@DaKaZ
Copy link
Owner

DaKaZ commented Dec 4, 2018

@alkor97 sorry for the long delay. Please see commit 60c5191 and let me know if this fixes your issue.

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

No branches or pull requests

2 participants