NanoHttpd / nanohttpd

Tiny, easily embeddable HTTP server in Java.
http://nanohttpd.org
BSD 3-Clause "New" or "Revised" License
6.95k stars 1.7k forks source link

README.md example newFixedLengthResponse #445

Closed sapandang closed 7 years ago

sapandang commented 7 years ago

return newFixedLengthResponse(msg + "\n"); This work by changing to return Response.newFixedLengthResponse(msg + "\n");

sapandang commented 7 years ago

import static org.nanohttpd.protocols.http.response.Response.newFixedLengthResponse; solves the problem then return newFixedLengthResponse(msg + "\n"); can be used