fix bug when no POSt information is passed

Signed-off-by: Roger Manich <roger.manich@gmail.com>