NanoHttpd / nanohttpd

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

Purpose of NanoHttpd.QUERY_STRING #534

Open stefan-reich opened 5 years ago

stefan-reich commented 5 years ago

Hi,

I am wondering why this parameter is passed to serve(). Can I just hack NanoHTTPD to not include this? Like, removing this line:

parms.put(NanoHTTPD.QUERY_STRING_PARAMETER, session.getQueryParameterString());

The parameter is annoying when I want to put all the parameters into a link later (have to filter it out manually).

Thanks for a great product

LordFokas commented 5 years ago

Yeah it shouldn't be there in the first place, but this library was built on top of hacks and half-assed solutions the fact that despite all that it works as well as it does is remarkable. That's another thing that I aimed to fix in v3.