This commit is contained in:
Yury Semikhatsky 2024-07-31 16:16:45 -07:00
parent 07deb14c4e
commit 06f5ea4384

View file

@ -133,13 +133,11 @@ const BodyTab: React.FunctionComponent<{
}; };
function statusClass(statusCode: number): string { function statusClass(statusCode: number): string {
if (statusCode < 300 || statusCode === 304) { if (statusCode < 300 || statusCode === 304)
return 'green-circle'; return 'green-circle';
} else if (statusCode < 400) { if (statusCode < 400)
return 'yellow-circle'; return 'yellow-circle';
} else {
return 'red-circle'; return 'red-circle';
}
} }
function formatBody(body: string | null, contentType: string): string { function formatBody(body: string | null, contentType: string): string {