Skip to content

Commit

Permalink
Fixed an off-by-one bug, bumped version to 1.26.
Browse files Browse the repository at this point in the history
Merged bug fixes from forks, bumped version to 1.27
  • Loading branch information
elonen committed Apr 2, 2013
1 parent 95f86f9 commit 2b5c062
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions NanoHTTPD.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
/**
* A simple, tiny, nicely embeddable HTTP 1.0 (partially 1.1) server in Java
*
* <p> NanoHTTPD version 1.25,
* Copyright &copy; 2001,2005-2012 Jarno Elonen ([email protected], http://iki.fi/elonen/)
* <p> NanoHTTPD version 1.27,
* Copyright &copy; 2001,2005-2013 Jarno Elonen ([email protected], http://iki.fi/elonen/)
* and Copyright &copy; 2010 Konstantinos Togias ([email protected], http://ktogias.gr)
*
* <p><b>Features + limitations: </b><ul>
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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"+
Expand Down

0 comments on commit 2b5c062

Please sign in to comment.