Permalink
Browse files

Adicionado headers para o Correios não negar o request. Fixes #13

  • Loading branch information...
jrbasso authored and vitorpacheco committed Oct 29, 2011
1 parent edac806 commit 2a378e5c4ba7f2829c9014ffa0559f7b05a2ee30
Showing with 1 addition and 1 deletion.
  1. +1 −1 Model/Behavior/CorreiosBehavior.php
@@ -55,7 +55,7 @@ public function valorFrete(&$model, $servico, $cepOrigem, $cepDestino, $peso, $m
if (!in_array($servico, $tipos)) {
return ERRO_CORREIOS_PARAMETROS_INVALIDOS;
}
-
+
if (!$this->_validaCep($cepOrigem) || !$this->_validaCep($cepDestino)) {
return ERRO_CORREIOS_PARAMETROS_INVALIDOS;
}

0 comments on commit 2a378e5

Please sign in to comment.