NanoHttpd / nanohttpd

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

Optimize decodePercent to use StandardCharsets.UTF_8 #561

Open jbrower2 opened 4 years ago

jbrower2 commented 4 years ago

There was unneeded error handling in the decodePercent method. This change uses an overloaded method that does not throw an UnsupportedEncodingException, and utilizes jdk7's StandardCharsets.UTF_8.

jbrower2 commented 2 years ago

@NoahAndrews Can this be merged? The build appears to have failed, but I can't imagine it was related to my change.

NoahAndrews commented 2 years ago

I'm not the maintainer