-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Access to HTTP POST body #272
Conversation
|
||
return defaultValue; | ||
} | ||
String HttpRequest::getPostParameter(String parameterName, String defaultValue /* = "" */) | ||
String HttpRequest::getPostParameter(String parameterName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't like that short lines, it's harder to read. No reason in actual monitors to fit in 80 chars.
Very long lines should be splited, of course.
Can you discover details of this P-R? Very many formating changes, what isn't good for understanding and code checking. |
Sorry for the formatting. Since Sming had an Eclipse config I simply used the configured formatting of the Eclipse project. I was under the impression the Eclipse project already had the correct formatting settings. |
Sorry, I'm not sure about specialized config, because I have never use it. May be just copy\paste required changes to original code? |
@dereulenspiegel : |
Solved by #578 |
This small change allows access to the body of a HTTP POST in case it hasn't been parsed as Form values. For the server to read the body and put in a char array, the content length has to be set and bigger than 0. Otherwise the body is omitted.