We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47e54b commit 51eaf99Copy full SHA for 51eaf99
1 file changed
packages/core/test/lib/utils/request.test.ts
@@ -219,6 +219,25 @@ describe('request utils', () => {
219
});
220
221
222
+ it('should prioritize x-forwarded-proto header even when downgrading from https to http', () => {
223
+ const actual = httpRequestToRequestData({
224
+ url: '/test',
225
+ headers: {
226
+ host: 'example.com',
227
+ 'x-forwarded-proto': 'http',
228
+ },
229
+ protocol: 'https',
230
+ });
231
+
232
+ expect(actual).toEqual({
233
+ url: 'http://example.com/test',
234
235
236
237
238
239
240
241
it('should prioritize x-forwarded-proto header over socket encryption detection', () => {
242
const actual = httpRequestToRequestData({
243
url: '/test',
0 commit comments