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

Add flash helper constructor to Uri #7105

Merged
merged 2 commits into from
Feb 23, 2020
Merged

Add flash helper constructor to Uri #7105

merged 2 commits into from
Feb 23, 2020

Conversation

devyte
Copy link
Collaborator

@devyte devyte commented Feb 23, 2020

Fixes #7102

Copy link
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we change one of the example strings to a FPSTR()? Just to catch this if it happens again?

@devyte
Copy link
Collaborator Author

devyte commented Feb 23, 2020

@earlephilhower I could do a different pr for that after this one is merged. I'm Chuck Norrising this from my phone via webedit while on the road.

Convert a c-str to a FPSTR in the example to have a section
of code in our CI that will catch any future breaks of this specific
kind.
Copy link
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested a snippet in the example:


  server.on(F("/"), []() {
    server.send(200, "text/plain", "hello from esp8266!");
  });

It fails w/master and passes with this. Updated one example for you such that master fails w/@TD-er's error and passes with this PR.

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.

Use of Uri in webserver breaks current implementations
2 participants