Skip to content

Commit

Permalink
fix: http scheme not reflected in built urls
Browse files Browse the repository at this point in the history
  • Loading branch information
MLenterman committed Sep 28, 2023
1 parent 848ec1e commit aed9768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
>
<Adapter
name="enkelvoudiginformatieobject_create"

>
<Receiver name="enkelvoudiginformatieobject_create">
<ApiListener
name="enkelvoudiginformatieobject_create"
method="POST"
uriPattern="/documenten/api/v1/enkelvoudiginformatieobjecten"
headerParams="Host"
headerParams="Host,X-Scheme"
produces="JSON"
consumes="JSON"
/>
Expand Down Expand Up @@ -103,7 +102,7 @@
<PutInSessionPipe
name="StoreSubstitutionVars"
>
<Param name="scheme" sessionKey="headers" xpathExpression="/headers/header[@name = 'Scheme']/text()" defaultValue="http" />
<Param name="scheme" sessionKey="headers" xpathExpression="/headers/header[@name = 'X-Scheme']/text()" defaultValue="http" />
<Param name="host" sessionKey="headers" xpathExpression="/headers/header[@name = 'Host']/text()" />
<Param name="ZgwEnkelvoudigInformatieObject" xpathExpression="/result/rowset/row[@number = '0']/field[@name = 'DATA']/text()" />
<Param name="pk" xpathExpression="/result/rowset/row[@number = '0']/field[@name = 'PK']/text()" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
name="zaakinformatieobject_create"
method="POST"
uriPattern="/zaken/api/v1/zaakinformatieobjecten"
headerParams="Host"
headerParams="Host,X-Scheme"
produces="JSON"
consumes="JSON"
/>
Expand Down Expand Up @@ -98,7 +98,7 @@
<PutInSessionPipe
name="StoreSubstitutionVars"
>
<Param name="scheme" sessionKey="headers" xpathExpression="/headers/header[@name = 'Scheme']/text()" defaultValue="http" />
<Param name="scheme" sessionKey="headers" xpathExpression="/headers/header[@name = 'X-Scheme']/text()" defaultValue="http" />
<Param name="host" sessionKey="headers" xpathExpression="/headers/header[@name = 'Host']/text()" />
<Param name="ZgwZaakInformatieObject" xpathExpression="/result/rowset/row[@number = '0']/field[@name = 'DATA']/text()" />
<Forward name="success" path="EnrichZgwZaakInformatieObject" />
Expand Down

0 comments on commit aed9768

Please sign in to comment.