Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Não fazer busca em branco #2

Open
chrisbenseler opened this issue Mar 27, 2017 · 1 comment
Open

Não fazer busca em branco #2

chrisbenseler opened this issue Mar 27, 2017 · 1 comment

Comments

@chrisbenseler
Copy link
Contributor

Se o campo CEP estiver em branco, ao clicar para fazer a busca não é tratado.
Então o script faz uma busca por 'https://viacep.com.br/ws//json/' e dá status 400 (bad request).
Acho que poderia tratar tanto isso quanto o formato (se é um CEP válido).

@oliveriojnn
Copy link
Owner

Bem lembrado. Vou ver isso aí.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants