@@ -1936,8 +1936,6 @@ test('register /static with wildcard false and alternative index', async t => {
19361936
19371937 const { promise, resolve } = Promise . withResolvers ( )
19381938
1939- // simple-get doesn't tell us about redirects so use http.request directly
1940- // to verify we do not get a redirect when not requested
19411939 const testurl = 'http://localhost:' + fastify . server . address ( ) . port + '/static'
19421940 const req = http . request ( url . parse ( testurl ) , res => {
19431941 t . assert . deepStrictEqual ( res . statusCode , 200 )
@@ -2042,7 +2040,6 @@ test('register /static with redirect true', async t => {
20422040
20432041 const { promise, resolve } = Promise . withResolvers ( )
20442042
2045- // simple-get doesn't tell us about redirects so use http.request directly
20462043 const testurl = 'http://localhost:' + fastify . server . address ( ) . port + '/static?a=b'
20472044 const req = http . request ( url . parse ( testurl ) , res => {
20482045 t . assert . deepStrictEqual ( res . statusCode , 301 )
@@ -2066,7 +2063,6 @@ test('register /static with redirect true', async t => {
20662063
20672064 const { promise, resolve } = Promise . withResolvers ( )
20682065
2069- // simple-get doesn't tell us about redirects so use http.request directly
20702066 const testurl = 'http://localhost:' + fastify . server . address ( ) . port + '/static'
20712067 const req = http . request ( url . parse ( testurl ) , res => {
20722068 t . assert . deepStrictEqual ( res . statusCode , 301 )
@@ -2104,7 +2100,6 @@ test('register /static with redirect true', async t => {
21042100
21052101 const { promise, resolve } = Promise . withResolvers ( )
21062102
2107- // simple-get doesn't tell us about redirects so use http.request directly
21082103 const testurl = 'http://localhost:' + fastify . server . address ( ) . port + '/static/deep/path/for/test?a=b'
21092104 const req = http . request ( url . parse ( testurl ) , res => {
21102105 t . assert . deepStrictEqual ( res . statusCode , 301 )
@@ -2161,7 +2156,6 @@ test('register /static with redirect true and wildcard false', async t => {
21612156
21622157 const { promise, resolve } = Promise . withResolvers ( )
21632158
2164- // simple-get doesn't tell us about redirects so use http.request directly
21652159 const testurl = 'http://localhost:' + fastify . server . address ( ) . port + '/static?a=b'
21662160 const req = http . request ( url . parse ( testurl ) , res => {
21672161 t . assert . deepStrictEqual ( res . statusCode , 301 )
@@ -2213,7 +2207,6 @@ test('register /static with redirect true and wildcard false', async t => {
22132207
22142208 const { promise, resolve } = Promise . withResolvers ( )
22152209
2216- // simple-get doesn't tell us about redirects so use http.request directly
22172210 const testurl = 'http://localhost:' + fastify . server . address ( ) . port + '/static/deep/path/for/test?a=b'
22182211 const req = http . request ( url . parse ( testurl ) , res => {
22192212 t . assert . deepStrictEqual ( res . statusCode , 301 )
0 commit comments