Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Update page.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
uesleibros authored Sep 3, 2024
1 parent bb70b7e commit 063adb7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/debug/test/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function DebugPage() {
const [response, setResponse] = useState(null);

const handleRequest = async () => {
try {

setResponse(null);
const parsedHeaders = headers ? JSON.parse(headers) : {}; // Parse headers JSON

Expand All @@ -26,10 +26,7 @@ export default function DebugPage() {
const res = await fetch(url, options);
const data = await res.headers;
setResponse(data);
} catch (error) {
console.error("Erro ao enviar requisição:", error);
setResponse(error.toString());
}

};

return (
Expand Down

0 comments on commit 063adb7

Please sign in to comment.