Skip to content
Snippets Groups Projects
Commit 29c1025b authored by Mathieu.Vonlanthen's avatar Mathieu.Vonlanthen
Browse files

fix: force http usage, in order to be compatible with old XML validators

parent 1cb204af
No related branches found
No related tags found
No related merge requests found
......@@ -115,9 +115,11 @@ public class OAIProviderController implements ControllerWithHateoasHome {
// OAI Identifier
schemaLocations.put(OAIConstants.OAI_ID_NAMESPACE, OAIConstants.OAI_ID_SCHEMA);
// OAI Repository
// Force http usage, in order to be compatible with old XML validators
final String httpOnlyOaiUrl = oaiUrl.replace("https://", "http://");
schemaLocations.put(
this.oaiService.getOaiRepositoryInfo().getRepositoryNamepsace(),
oaiUrl + SolidifyConstants.URL_SEP + SolidifyConstants.SCHEMA);
httpOnlyOaiUrl + SolidifyConstants.URL_SEP + SolidifyConstants.SCHEMA);
break;
case LIST_IDENTIFIERS:
// Specification
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment