Fix post method behavior

Because of wrong behavior in wsgi.c, response headers are set invalid.
Fix it