Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出来ますか?私はvibe.dでREST Apiを構築し、トークン認証を実装しています。ユーザーが Authorization ヘッダー パラメータをどの大文字で送信するかわからないため、大文字と小文字を区別しない方法でクエリを実行する必要があります。例えば:
string[string] foo; foo["XXX"] = "YYY"; logInfo(*("xxx" in foo)); // BOOM. Exception here
出来ますか..?
ありがとう
連想配列のすべてのキーを格納またはクエリする前に、単純に小文字にします。