diff options
Diffstat (limited to 'src/bun.js/bindings/webcore/HTTPHeaderNames.h')
-rw-r--r-- | src/bun.js/bindings/webcore/HTTPHeaderNames.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/bindings/webcore/HTTPHeaderNames.h b/src/bun.js/bindings/webcore/HTTPHeaderNames.h index 870c4980f..bee82e54e 100644 --- a/src/bun.js/bindings/webcore/HTTPHeaderNames.h +++ b/src/bun.js/bindings/webcore/HTTPHeaderNames.h @@ -238,7 +238,7 @@ template<> struct EnumTraits<WebCore::HTTPHeaderName> { WebCore::HTTPHeaderName::XXSSProtection>; }; -static StaticStringImpl* staticHeaderNames[] = { +static const NeverDestroyed<String> staticHeaderNames[] = { MAKE_STATIC_STRING_IMPL("accept"), MAKE_STATIC_STRING_IMPL("accept-charset"), MAKE_STATIC_STRING_IMPL("accept-encoding"), @@ -334,7 +334,7 @@ static StaticStringImpl* staticHeaderNames[] = { MAKE_STATIC_STRING_IMPL("x-xss-protection"), }; -static WTF::StaticStringImpl* httpHeaderNameStringImpl(WebCore::HTTPHeaderName headerName) +static const WTF::String& httpHeaderNameStringImpl(WebCore::HTTPHeaderName headerName) { return staticHeaderNames[static_cast<size_t>(headerName)]; } |