File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/adapter-node/src Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @sveltejs/adapter-node ' : patch
3
+ ---
4
+
5
+ fix: handling of PROTOCOL_HEADER and HOST_HEADER env vars
Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ function sequence(handlers) {
182
182
* @returns
183
183
*/
184
184
function get_origin ( headers ) {
185
- const protocol = ( protocol_header && headers [ protocol_header ] ) ?? 'https' ;
186
- const host = ( host_header && headers [ host_header ] ) ?? headers [ 'host' ] ;
185
+ const protocol = ( protocol_header && headers [ protocol_header ] ) || 'https' ;
186
+ const host = ( host_header && headers [ host_header ] ) || headers [ 'host' ] ;
187
187
const port = port_header && headers [ port_header ] ;
188
188
189
189
return port ? `${ protocol } ://${ host } :${ port } ` : `${ protocol } ://${ host } ` ;
You can’t perform that action at this time.
0 commit comments