(headers)
| 1012 | } |
| 1013 | |
| 1014 | function hasAuthorizationHeader(headers) { |
| 1015 | const value = headers && (headers.Authorization || headers.authorization); |
| 1016 | return typeof value === 'string' && /^Bearer\s+\S+$/i.test(value); |
| 1017 | } |
| 1018 | |
| 1019 | function stableHubReason(body, allowed) { |
| 1020 | return stableReason(hubReason(body), allowed); |
no outgoing calls
no test coverage detected