dallaslu on Nostr: Why Accept-Language needs q parameter? I ask GTP4 to parse the header to detect ...
Why Accept-Language needs q parameter? I ask
GTP4 to parse the header to detect preferred language of visitors, and it just sort the locales array with the q parameter. Wait a moment, doesn’t the original locales in a string have a natural sort?
Published at
2024-03-06 17:32:31Event JSON
{
"id": "f9f7288b8f7e46cd5f85e3e97d966b4aac5cbd9f49d59a4c38d58c3fbb3217c5",
"pubkey": "aa22717fdec2e7d28cc5bcd3a712598b40a793629f5ebfb1378196c55fb37b51",
"created_at": 1709742751,
"kind": 1,
"tags": [],
"content": "Why Accept-Language needs q parameter? I ask\n GTP4 to parse the header to detect preferred language of visitors, and it just sort the locales array with the q parameter. Wait a moment, doesn’t the original locales in a string have a natural sort?",
"sig": "9770a256c9d9565bdab64cf3a571d579cf1d18ad44c27fb7691ddd93920c49db66d458a1d48fb9564ddc1672627e8d635001a123cb9bddc978e43f94924c8265"
}