Fixed error concerning HTTP POST requests