Better fix for Fix NanoHTTP 2.3.1 bug "BAD REQUEST"...
The previous one did not work for "POST /api/v1/events" that
the OUYA regularly makes.
Solution by @marianolc in
https://github.com/NanoHttpd/nanohttpd/issues/356#issuecomment-
380158910
Fix NanoHTTP 2.3.1 bug: "BAD REQUEST: Syntax error. HTTP verb .. unhandled"
Happens when data are POSTed or PUT without us reading them.
Bug report: https://github.com/NanoHttpd/nanohttpd/issues/356
Solution by @cowenberg in
https://github.com/NanoHttpd/nanohttpd/issues/356#issuecomment-
288422714
Error message we got:
E/f ( 571): Got failure response with message: BAD REQUEST: Syntax error. HTTP verb gamer%5Bkey%5D=-----BEGIN+PUBLIC+KEY-----%0AMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUYcfiISnlc%2FHrpRi%2BTX1keBUoY2%2FiR45q0sy6%0A3SXkzgmgQCf5Kitx6rv0djQEOP%2FcvIFYFOx8At%2FAwgzhd8ltU%2F1Z%2BRNohukXvMMiCuJr5CNhtdxp%0ABfWF%2FSTV%2FDSYPpP%2BZtLgthNhERomW8krVcgxV%2F%2B9NK2NHA0W7IJ%2FmIzffwIDAQAB%0A-----END+PUBLIC+KEY-----%0A&gamer%5Bpassword%5D=.&auth_token=
00702342-0000-1111-2222-
c3e1500cafe1&gamer%5Busername%5D=cweiskePUT unhandled.