Allow POST requests in the testing server

In my tests I often do some network testing (AJAX stuff, HTML form submitting, ...) and I need to test POST requests as well. Right now the POST request are refused.

This small change should do the trick. I also tried to cover it in tests.