Lucas_Werkmeister_WMDE added a comment.
Real code: `MIMEParse.java` <https://github.com/LinkedDataFragments/Server.Java/blob/15f72a0675cb761a986f0d0d40b36a83dd482b1e/src/main/java/org/linkeddatafragments/util/MIMEParse.java> makes the decision, is initialized with five MIME types <https://github.com/LinkedDataFragments/Server.Java/blob/f92ee36cc45c09ac4cdf6b5a6a6597d7c2dd7af7/src/main/java/org/linkeddatafragments/servlet/LinkedDataFragmentServlet.java#L99-L103>, and then asked for the “best match” for the `Accept` header <https://github.com/LinkedDataFragments/Server.Java/blob/f92ee36cc45c09ac4cdf6b5a6a6597d7c2dd7af7/src/main/java/org/linkeddatafragments/servlet/LinkedDataFragmentServlet.java#L164-L165>. It appears to take the “quality” parameter into account, somehow; on the other hand, others have already complained that it doesn’t understand `application/ld+json` as equivalent to `application/json` <https://github.com/LinkedDataFragments/Server.Java/issues/54>. TASK DETAIL https://phabricator.wikimedia.org/T232006 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: BBlack, Lucas_Werkmeister_WMDE, Aklapper, Lexie_23Kr, Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, darthmon_wmde, Meekrab2012, joker88john, Legado_Shulgin, DannyS712, CucyNoiD, Nandana, NebulousIris, thifranc, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Davinaclare77, Adrian1985, Qtn1293, Cpaulf30, Techguru.pc, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Hfbn0, Ramalepe, Liugev6, QZanden, EBjune, merbst, LawExplorer, WSH1906, Lewizho99, Zppix, Maathavan, _jensen, rosalieper, Jonas, Xmlizer, Wong128hk, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, faidon, Mbch331, Jay8g, fgiunchedi
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs