previous patch only fixed problem for GET-requests, this one takes care of POSTs