cdanielou / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

Timeline.loadXML sends an HTTP Accept header which includes */* #418

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. timeline = Timeline.create(blah);
2. timeline.loadXML("foo", function() { ...});
3. check on server: request arrives with Accept header of */*

What is the expected output? What do you see instead?
The Accept header should be application/xml (even text/xml or 
application/x-timeline+xml would be semi-reasonable, but saying "it's cool if 
you send me an image, whatever" isn't!)

What version of the product are you using? On what browser and what
operating system?

timeline_libraries_v2.3.0.zip, both sides running on OS X

Chrome and Safari request "*/*"
Firefox requests 
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
(different, but still wrong)

The point here is that this makes content-negotiation effectively impossible.

Original issue reported on code.google.com by norman.x.gray on 21 Dec 2010 at 4:34

GoogleCodeExporter commented 8 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 9:37