mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-23 01:08:54 +00:00
Merge pull request #30 from marcelhuberfoo/master
Use x-forwarded-proto as scheme value if available
This commit is contained in:
commit
7e7ab0f676
@ -7,7 +7,8 @@
|
|||||||
(pageContext.request.scheme == 'https' && pageContext.request.serverPort != 443) }">
|
(pageContext.request.scheme == 'https' && pageContext.request.serverPort != 443) }">
|
||||||
<c:set var="port" value=":${pageContext.request.serverPort}" />
|
<c:set var="port" value=":${pageContext.request.serverPort}" />
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:set var="hostpath" value="${pageContext.request.scheme}://${pageContext.request.serverName}${port}${contextroot}" />
|
<c:set var="scheme" value="${(not empty header['x-forwarded-proto']) ? header['x-forwarded-proto'] : pageContext.request.scheme}" />
|
||||||
|
<c:set var="hostpath" value="${scheme}://${pageContext.request.serverName}${port}${contextroot}" />
|
||||||
<c:if test="${!empty encoded}">
|
<c:if test="${!empty encoded}">
|
||||||
<c:set var="imgurl" value="${hostpath}/png/${encoded}" />
|
<c:set var="imgurl" value="${hostpath}/png/${encoded}" />
|
||||||
<c:set var="svgurl" value="${hostpath}/svg/${encoded}" />
|
<c:set var="svgurl" value="${hostpath}/svg/${encoded}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user