forked from NanoHttpd/nanohttpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an off-by-one bug, bumped version to 1.26.
Merged bug fixes from forks, bumped version to 1.27
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,8 @@ | |
/** | ||
* A simple, tiny, nicely embeddable HTTP 1.0 (partially 1.1) server in Java | ||
* | ||
* <p> NanoHTTPD version 1.25, | ||
* Copyright © 2001,2005-2012 Jarno Elonen ([email protected], http://iki.fi/elonen/) | ||
* <p> NanoHTTPD version 1.27, | ||
* Copyright © 2001,2005-2013 Jarno Elonen ([email protected], http://iki.fi/elonen/) | ||
* and Copyright © 2010 Konstantinos Togias ([email protected], http://ktogias.gr) | ||
* | ||
* <p><b>Features + limitations: </b><ul> | ||
|
@@ -258,7 +258,7 @@ public void stop() | |
*/ | ||
public static void main( String[] args ) | ||
{ | ||
myOut.println( "NanoHTTPD 1.25 (C) 2001,2005-2011 Jarno Elonen and (C) 2010 Konstantinos Togias\n" + | ||
myOut.println( "NanoHTTPD 1.27 (C) 2001,2005-2013 Jarno Elonen and (C) 2010 Konstantinos Togias\n" + | ||
"(Command line options: [-p port] [-d root-dir] [--licence])\n" ); | ||
|
||
// Defaults | ||
|
@@ -367,7 +367,7 @@ public void run() | |
// have reached the end of the data to be sent or we should | ||
// expect the first byte of the body at the next read. | ||
if (splitbyte < rlen) | ||
size -= rlen-splitbyte+1; | ||
size -= rlen-splitbyte; | ||
else if (splitbyte==0 || size == 0x7FFFFFFFFFFFFFFFl) | ||
size = 0; | ||
|
||
|
@@ -1113,7 +1113,7 @@ else if ( len < 1024 * 1024 ) | |
* The distribution licence | ||
*/ | ||
private static final String LICENCE = | ||
"Copyright (C) 2001,2005-2011 by Jarno Elonen <[email protected]>\n"+ | ||
"Copyright (C) 2001,2005-2013 by Jarno Elonen <[email protected]>\n"+ | ||
"and Copyright (C) 2010 by Konstantinos Togias <[email protected]>\n"+ | ||
"\n"+ | ||
"Redistribution and use in source and binary forms, with or without\n"+ | ||
|