Age | Commit message (Collapse) | Author |
|
Merge tag 'nanohttpd-project-2.2.0' from
https://github.com/NanoHttpd/nanohttpd to add HTTPS support.
Bug: 26289868
Change-Id: I6ea26be836ec2682c766127f2fa41f4932557718
|
|
This method replaces Response's public constructor in
v2.2.0. To avoid temporary breakage, I'm adding an
implementation of it so that existing callers can be updated
to call it before NanoHTTPD is rolled forward.
Bug: 26289868
Change-Id: If68a314f16294e226b223cb35b6c35ca7449a03d
|
|
|
|
The original version will save real IP in headers["remote-addr"] and then write HTTP headers to variable headers. This may cause some security issues. Clients can easily override their real ip by add header 'remote-addr' in http requests.
|
|
Added ServerSocketFactory to allow custom ServerSockets;
|
|
|
|
Fixed non-static classes and wrong return.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exist #243
|
|
|
|
The method getBodySize() returns a long. Parsing ints limited the range.
|
|
Added recognition of (non-standard) \n\n-headers for more tolerance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The 408 Request Timeout is the recommended response when performing HTTP Long Polling. https://tools.ietf.org/html/rfc6202#section-5.5
https://tools.ietf.org/html/rfc7231#section-6.5.7 is useful when doing long polling with NanoHTTPD.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|