Mercurial Hosting > luan
comparison src/luan/webserver/Connection.java @ 1196:44491798e431
debug "body is null"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 26 Feb 2018 21:06:28 -0700 |
parents | bd0420fb3dd0 |
children | 886e14903c1e |
comparison
equal
deleted
inserted
replaced
1195:9a57f0b16c2b | 1196:44491798e431 |
---|---|
83 } | 83 } |
84 | 84 |
85 String contentType = (String)request.headers.get("content-type"); | 85 String contentType = (String)request.headers.get("content-type"); |
86 if( contentType != null ) { | 86 if( contentType != null ) { |
87 if( request.body == null ) { | 87 if( request.body == null ) { |
88 logger.error("body is null"); | 88 logger.error("body is null\n"+request.rawHead); |
89 } else { | 89 } else { |
90 if( "application/x-www-form-urlencoded".equals(contentType) ) { | 90 if( "application/x-www-form-urlencoded".equals(contentType) ) { |
91 parser.parseUrlencoded(); | 91 parser.parseUrlencoded(); |
92 } else if( contentType.startsWith("multipart/form-data;") ) { | 92 } else if( contentType.startsWith("multipart/form-data;") ) { |
93 parser.parseMultipart(); | 93 parser.parseMultipart(); |