Skip to content

Commit

Permalink
Add default to worker status
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa committed Aug 9, 2024
1 parent 5447a0f commit 4ef6a36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function maybeGetLanguage(
}

const ResponseView: React.FC<Props> = ({ response, loading }) => {
const status = response.headers.get("cf-ew-status") || "";
const status = response.headers.get("cf-ew-status") ?? "200";
const statusCode = window.parseInt(status, 10);

const headers = useMemo(
Expand Down

0 comments on commit 4ef6a36

Please sign in to comment.