fix POST redirect

done for [AGIOS-58](https://issues.jboss.org/browse/AGIOS-58)