Fixing bug in HTTP accept header processing as requested by timbl@w3.org

This commit is contained in:
bdc34 2010-05-11 13:50:33 +00:00
parent da6ac0eef1
commit a8cfc10b2e
3 changed files with 26 additions and 2 deletions

View file

@ -423,7 +423,7 @@ public class EntityController extends VitroHttpServlet {
* @return null if this is not a linked data request, returns content type if it is a
* linked data request.
*/
private ContentType checkForLinkedDataRequest(String url, String acceptHeader) {
protected ContentType checkForLinkedDataRequest(String url, String acceptHeader) {
try {
//check the accept header
if (acceptHeader != null) {

View file

@ -260,7 +260,7 @@ public class ContentType implements Serializable {
if (qValue <= 0 || qValue > 1) {
continue;
}
curQ = qValue;
curQ = qValue + 0.0001F;
}
} catch (NumberFormatException ex) {
// ignore exception