Skip to content

Commit

Permalink
Aceita qualquer verbo HTTP (dando 404) e faz a versão opcional (apare…
Browse files Browse the repository at this point in the history
…ntemente o UploadRobot nao manda versao 😡)
  • Loading branch information
chesterbr committed Dec 6, 2023
1 parent 8df8f3d commit 154ca3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void run() {
// começar, senão também paciência)
finalizaThreadAuxiliar();
boolean isGet = linha.startsWith("GET");
boolean isStatus = linha.matches("^(GET|HEAD) /status(?:\\?\\S*)?(?: HTTP/.*)$");
boolean isStatus = linha.matches("^(GET|HEAD) /status(?:\\?\\S*)?(?: HTTP/.*)?$");
// Espera o cliente mandar todos os headers
while (linha != null && !linha.isEmpty()) {
linha = in.readLine();
Expand Down

0 comments on commit 154ca3c

Please sign in to comment.