Mercurial Hosting > luan
diff http/src/luan/modules/http/HttpServicer.java @ 725:a741a3a33423
add url support for multipart/form-data
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 08 Jun 2016 23:13:10 -0600 |
parents | eaf30d5aaf6a |
children | d7371dc8c2e7 |
line wrap: on
line diff
--- a/http/src/luan/modules/http/HttpServicer.java Tue Jun 07 16:00:41 2016 -0600 +++ b/http/src/luan/modules/http/HttpServicer.java Wed Jun 08 23:13:10 2016 -0600 @@ -33,9 +33,9 @@ import luan.DeepCloner; import luan.modules.PackageLuan; import luan.modules.IoLuan; -import luan.modules.LuanUrl; import luan.modules.TableLuan; import luan.modules.Utils; +import luan.modules.url.LuanUrl; public final class HttpServicer { @@ -108,6 +108,13 @@ for( Part p : mpis.getParts() ) { final MultiPartInputStream.MultiPart part = (MultiPartInputStream.MultiPart)p; String name = part.getName(); +/* +System.out.println("name = "+name); +System.out.println("getContentType = "+part.getContentType()); +System.out.println("getHeaderNames = "+part.getHeaderNames()); +System.out.println("content-disposition = "+part.getHeader("content-disposition")); +System.out.println(); +*/ Object value; String filename = part.getContentDispositionFilename(); if( filename == null ) {