Soup 3.x fails reading responses from query.wikidata.org
Soup seems to be failing while reading responses from https://query.wikidata.org, this was seen through Tracker but is reproducible with the get
example command included in libsoup tree:
$ ./examples/get https://query.wikidata.org/sparql
Failed to send request: Could not parse HTTP response
This used to work with libsoup2.x (from the gnome-3-38 branch):
$ ./examples/get https://query.wikidata.org/sparql
/sparql: 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
...
AFAICS this is a HTTP/1.1 secure connection, and I just got as far as seeing it gets garbage data trying to parse the headers. I didn't figure out what is the determining factor though, https://gnome.org seems to be those same things, and it works with that URL.