fixed 'geoportalexport-prj' header
This commit is contained in:
parent
9f39caf948
commit
3ccf24fd2a
|
|
@ -9,6 +9,8 @@ import java.io.IOException;
|
|||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.gcube.datatransfer.resolver.services.GeoportalExporter;
|
||||
|
||||
/**
|
||||
* Generates HTML messages for the Geoportal Exporter.
|
||||
*
|
||||
|
|
@ -42,7 +44,7 @@ public class GeoportalHTMLMessageGenerator {
|
|||
try {
|
||||
Template template = cfg.getTemplate(GEOPORTAL_EXPORTER_WAITING_PAGE_FTL);
|
||||
Map<String, Object> dataModel = new HashMap<>();
|
||||
dataModel.put("geoportalexport_prj", geoportalexport_prj);
|
||||
dataModel.put(GeoportalExporter.HEADER_GEOPORTALEXPORT_PRJ, geoportalexport_prj);
|
||||
dataModel.put("action", action);
|
||||
dataModel.put("message", message);
|
||||
dataModel.put("waiting", waiting);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
'Content-Type': 'application/json'
|
||||
};
|
||||
<#if geoportalexport_prj?has_content>
|
||||
headers['geoportalexport_prj'] = '${geoportalexport_prj}';
|
||||
headers['geoportalexport-prj'] = '${geoportalexport_prj}';
|
||||
</#if>
|
||||
|
||||
const response = await fetch('${viewPdfURL}', {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public class GeoportalExporter {
|
|||
private static final String HEADER_USER_AGENT = "User-Agent";
|
||||
|
||||
// This parameter is used for sticky session on load balancer, see #28580
|
||||
private static final String HEADER_GEOPORTALEXPORT_PRJ = "geoportalexport-prj";
|
||||
public static final String HEADER_GEOPORTALEXPORT_PRJ = "geoportalexport-prj";
|
||||
|
||||
private static final String JOB_CODE = "jobCode";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue