Skip to content

v1.5.30

Compare
Choose a tag to compare
@cf-buildpacks-eng cf-buildpacks-eng released this 06 May 23:09
· 164 commits to master since this release
  • Handle comma separated X-Forwarded-{Header,Prefix}

    1. Proxies can technically set these headers with multiple comma separated
      values. For XF-Host header, we were dumping the entire value into the
      redirect thus creating invalid redirects like 301 https://host1, host2. With this change, we pick the leftmost comma separated value
      to use for setting the redirect host location.

    2. Add support for X-Forwarded-Prefix
      Also in the edge case there are multiple comma separated values,
      pick the leftmost.

    E.g.

    X-Forwarded-Host: host1, host2
    X-Forwarded-Prefix: /pre/fix1, /pre/fix2
    example.com/abc/def
    

    will resolve to 301 https://host1/pre/fix1/abc/def

    Fixes #280

Packaged binaries:

name version cf_stacks
nginx 1.20.2 cflinuxfs3
nginx 1.21.6 cflinuxfs3

Default binary versions:

name version
nginx 1.21.x
  • Uncached buildpack SHA256: bfd8ddeaf95b3aa1c26a525150ed5d4ba17b3b9863e017e75a246d3e07b6fd8b