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

View file

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