Mercurial Hosting > luan
changeset 1299:c214cd0413dd
allow upload images
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 10 Jan 2019 23:40:52 -0700 |
parents | 01a380c494f2 |
children | 590ad449ac7f |
files | src/luan/webserver/RequestParser.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
diff -r 01a380c494f2 -r c214cd0413dd src/luan/webserver/RequestParser.java --- a/src/luan/webserver/RequestParser.java Thu Jan 10 23:20:27 2019 -0700 +++ b/src/luan/webserver/RequestParser.java Thu Jan 10 23:40:52 2019 -0700 @@ -217,6 +217,8 @@ int start = parser.currentIndex(); if( parser.match("application/") ) { isBinary = true; + } else if( parser.match("image/") ) { + isBinary = true; } else if( parser.match("text/") ) { isBinary = false; } else