Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Disabled request body parsing if the handler does nothing. #266

Merged
merged 2 commits into from
Nov 6, 2017

Conversation

me21
Copy link
Contributor

@me21 me21 commented Oct 25, 2017

This will save memory and prevent crashes on large POST requests.

Signed-off-by: Alexandr Zarubkin [email protected]

me21 added 2 commits October 25, 2017 09:56
…save memory and prevent crashes on large POST requests.

Signed-off-by: Alexandr Zarubkin <[email protected]>
…ocess POST requests.

Signed-off-by: Alexandr Zarubkin <[email protected]>
@me21
Copy link
Contributor Author

me21 commented Oct 25, 2017

Hmm, I've noticed one drawback: if someone derives new subclasses of AsyncWebHandler which handle POST requests, he must not forget to redefine isRequestHandlerTrivial() function. Maybe this function should be marked as pure virtual to force being overridden in subclasses?

@me-no-dev me-no-dev merged commit bf2ffdc into me-no-dev:master Nov 6, 2017
@me-no-dev
Copy link
Owner

Nice :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants