Mercurial Hosting > luan
comparison web/src/luan/modules/web/HttpServicer.java @ 359:8848edb0e6bf
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 15 Apr 2015 08:58:54 -0600 |
parents | 6fc33c20441b |
children | 0581238084ad |
comparison
equal
deleted
inserted
replaced
358:6fc33c20441b | 359:8848edb0e6bf |
---|---|
215 String contentType = request.getContentType(); | 215 String contentType = request.getContentType(); |
216 if( contentType!=null && contentType.startsWith("multipart/form-data") ) { | 216 if( contentType!=null && contentType.startsWith("multipart/form-data") ) { |
217 try { | 217 try { |
218 InputStream in = new BufferedInputStream(request.getInputStream()); | 218 InputStream in = new BufferedInputStream(request.getInputStream()); |
219 final MultiPartInputStream mpis = new MultiPartInputStream(in,contentType,null,null); | 219 final MultiPartInputStream mpis = new MultiPartInputStream(in,contentType,null,null); |
220 mpis.setDeleteOnExit(true); | |
220 parts = new NameTable() { | 221 parts = new NameTable() { |
221 | 222 |
222 @Override Object get(String name) { | 223 @Override Object get(String name) { |
223 try { | 224 try { |
224 MultiPartInputStream.MultiPart part = (MultiPartInputStream.MultiPart)mpis.getPart(name); | 225 MultiPartInputStream.MultiPart part = (MultiPartInputStream.MultiPart)mpis.getPart(name); |