Fix bugs in the action computation from HTTP Method

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>