Fixing bug in HTTP accept header processing as requested by timbl@w3.org
This commit is contained in:
parent
da6ac0eef1
commit
a8cfc10b2e
3 changed files with 26 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue