On Fri, 2012-05-18 at 09:34 -0700, Graham Klyne wrote:

> I've worked out a fix for the case sensitive matching of MIME types -
> simply adding .lower() at the appropriate places in MIMEAccept._match
> (similar to what Accept._match does)

Noted, I'll pass that on.

> So it seems that the Pyramid request routing logic is making multiple
> calls with a reducing list of possible server offers for handling the
> MIME type.

That's rather puzzling and I'm at a loss to explain it.

I transcribed Gunnar's Flask-based LODserver / SPARQLendpoint [1] to
Pyramid [2] (for use with Python 3) and it is passing all but one of the
conneg tests posed by Virtuoso's "Vapour" LOD validator facility [3]
and, as far as I can tell from debug statements, I'm only seeing one
call on best_match() for each step in the conneg sequence.

When I get a moment, I will check my Pyramid transcription under Python
2, to see if anything shows up there. 

[1] https://github.com/RDFLib/rdfextras-web
[2] http://delta.bel-epa.com/
[3] http://validator.linkeddata.org/vapour?uri=http%3A%2F%
2Fdelta.bel-epa.com%2Fresource%2FBook%
2Fbook1&mixedAccept=1&defaultResponse=dontmind&userAgent=vapour.sourceforge.net

Cheers,

-- 
Graham Higgins

http://bel-epa.com/gjh/

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to