Fixes posting when running the API over Tigase

As per title.