ReviewOS

also looking at this

stacks/rpx

fix(test): stop a leaked spawn mock hanging the gateway CLI tests (#2267), pin forwarded headers (#2265)

#2268
Merged chris wants to merge fix/2265-2267-proxy-header-and-cli-coverage into main
4 files +57 -4
packages/rpx/test/proxy-pool.test.tsmodified+3-0
Changes to packages/rpx/test/proxy-pool.test.ts
@@ -183,6 +183,9 @@ describe('proxyViaPool', () => {
183183 expect(got['x-forwarded-for']).toBe('203.0.113.7')
184184 expect(got['x-real-ip']).toBe('203.0.113.7')
185185 expect(got['x-forwarded-host']).toBe('site.test')
186 // rpx terminates TLS, so the upstream cannot otherwise tell the client arrived
187 // over it — anything building absolute URLs or forcing HTTPS reads this.
188 expect(got['x-forwarded-proto']).toBe('https')
186189 expect(got['x-custom']).toBe('keep-me') // unrelated client headers pass through
187190 })
188191