This commit is contained in:
Redkale
2019-09-09 16:35:08 +08:00
parent 8f6aa4f4a5
commit b98b526c50

View File

@@ -210,7 +210,7 @@ public class HttpRequest extends Request<HttpContext> {
private void parseBody() {
if (this.boundary || bodyparsed) return;
if (this.contentType.toLowerCase().contains("x-www-form-urlencoded")) {
if (this.contentType != null && this.contentType.toLowerCase().contains("x-www-form-urlencoded")) {
addParameter(array, 0, array.size());
}
bodyparsed = true;