Skip to content
Commit Detail

Commit cd13786

Author
Kenton Varda <kenton@cloudflare.com> 2024-03-13 09:55:39 -0500
Parents
1743a4e
Tree
a92ee88
Refactor: Consolidate defaultStatusText().

Response::constructor() included fallback code to set status text based on which range the code is in, if we didn't have a specific string for the specific code. This could be moved directly into `defaultStatusText()`, which helps with my next commit.

There are only two call sites of this function, and the other call site is cleary not affected since it is only called for certain specific knows codes. In order to prove there are no other call sites, I moved the declaration out of the header.

Files changed

2 files changed~2 modified