]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Use delivered content-type to parse XML_XRD
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 2 Jul 2016 11:44:25 +0000 (13:44 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 2 Jul 2016 11:44:25 +0000 (13:44 +0200)
commit3987cad9b738b8ffd28a01f46bd7370c589b2917
tree4e415f09d5e66e833e541b4408bc3910363b0f64
parentcfd9aee57bd1344313ccfbc0d699db74297e80dc
Use delivered content-type to parse XML_XRD

In issue #205 we saw data coming in with an additional line-break before
the JSON data which fuzzed the auto-detection in XML_XRD (which assumed
a { as the first character). If we use the Content-type header from HTTP
we can avoid that issue.
plugins/LRDD/lib/discovery.php