(statusCode, req)
| 167 | * @returns {number} |
| 168 | */ |
| 169 | export function statusCodeOverride (statusCode, req) { |
| 170 | if (isEmptyToken(req)) { |
| 171 | return 400 |
| 172 | } else { |
| 173 | return statusCode |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * Tests whether the `Authorization:` header includes an empty or missing Bearer |
nothing calls this directly
no test coverage detected