sharpaper
sharpaper
mmm I think [this](https://github.com/digitalbazaar/pyld/blob/de5130b4a9316ac189a449ac9157c151c8a06667/lib/pyld/jsonld.py#L128) could be what I'm looking for?
If this can be any useful, when the "document loader" sends the `.get()` request to retrieve the remote context, see [L63](https://github.com/digitalbazaar/pyld/blob/master/lib/pyld/documentloader/requests.py#L63), the parameters are: url = https://www.w3.org/ns/activitystreams headers = {'Accept':...
Changing the q value of `text/html` [here](https://github.com/digitalbazaar/pyld/blob/de5130b4a9316ac189a449ac9157c151c8a06667/lib/pyld/jsonld.py#L6574) to 0.5, that is `text/html;q=0.5`, it fetches the document correctly. Anything above 0.5 and it doesn't work. What the heck is going on?...
Can `text/html` and `application/xhtml+xml` be removed entirely from the Accept header? Why are they needed? Shouldn't objects always be retrieved with `application/ld+json`?
Unfortunately the text/html option is hard coded into the load_document function but this issue could be circumvented if issue [#125](https://github.com/digitalbazaar/pyld/issues/125) was fixed, as it would allow to configure custom headers...
OK I was able to figure out a workaround with a custom loader, but issue #125 should really be fixed because it would make this process **a lot** simpler by...
Is it possible that there is some kind of weights that are been evaluated before choosing the response content-type? I have no idea how these q and qs properties are...
I'm thinking my hypothesis is indeed true. After taking a look at [httpd source](https://github.com/apache/httpd/blob/trunk/modules/mappers/mod_negotiation.c#L212) I've found two RFC ([2295](https://tools.ietf.org/html/rfc2295#section-19) and [2296](https://tools.ietf.org/html/rfc2296#section-3.3)) that say "The overall quality Q of a variant...
[Another relevant thread](https://github.com/spdx/license-list-data/issues/13).
This bug is 5 years old and still exists. It creates problems with UTF-8 URL because Bottle returns `400`. Can somebody knowledgeable of Bottle please look into fixing this? Thank...