Skip to content

Commit

Permalink
fixed numberformatexception's
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Oct 20, 2014
1 parent 132a7e8 commit 532ac13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
19 changes: 0 additions & 19 deletions TODO.md

This file was deleted.

Expand Up @@ -972,7 +972,7 @@ public void execute() throws IOException
}
}

protected void parseBody(Map<String, String> files) throws IOException, ResponseException
public void parseBody(Map<String, String> files) throws IOException, ResponseException
{
RandomAccessFile randomAccessFile = null;
BufferedReader in = null;
Expand Down Expand Up @@ -1017,7 +1017,7 @@ else if (splitbyte < rlen)

// If the method is POST, there may be parameters
// in data section, too, read it:
if (Method.POST.equals(method))
if (Method.POST.equals(method) || Method.PUT.equals(method))
{
String contentType = "";
String contentTypeHeader = headers.get("content-type");
Expand Down Expand Up @@ -1358,7 +1358,7 @@ private int stripMultipartHeaders(ByteBuffer b, int offset)
* Decodes parameters in percent-encoded URI-format ( e.g. "name=Jack%20Daniels&pass=Single%20Malt" ) and
* adds them to given Map. NOTE: this doesn't support multiple identical keys due to the simplicity of Map.
*/
private void decodeParms(String parms, Map<String, String> p)
public void decodeParms(String parms, Map<String, String> p)
{
if (parms == null)
{
Expand Down
Expand Up @@ -78,9 +78,6 @@ private Post()
public static void handlePost(HashMap<String, Object> dataObject, NanoHTTPD.HTTPSession session)
{
Map<String, String> map = session.getParms();
// TODO debug code
// Main.printdebug(session, dataObject);

String split[] = session.getUri().substring(1).split("/");
switch (split[0]) // 0 => type id
{
Expand Down

0 comments on commit 532ac13

Please sign in to comment.