Skip to content

Default content type not set correctly #8

@alkor97

Description

@alkor97

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions