File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 55[ ![ js-standard-style] ( https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat )] ( https://standardjs.com/ )
66
77Proxy your HTTP requests to another server, with hooks.
8- This [ ` fastify ` ] ( https://www. fastify.io ) plugin forwards all requests
8+ This [ ` fastify ` ] ( https://fastify.dev ) plugin forwards all requests
99received with a given prefix (or none) to an upstream. All Fastify hooks are still applied.
1010
1111` @fastify/http-proxy ` is built on top of
@@ -172,7 +172,7 @@ fastify.register(proxy, {
172172### ` config `
173173
174174An object accessible within the ` preHandler ` via ` reply.context.config ` .
175- See [ Config] ( https://www. fastify.io /docs/v4.8.x/Reference/Routes/#config ) in the Fastify
175+ See [ Config] ( https://fastify.dev /docs/v4.8.x/Reference/Routes/#config ) in the Fastify
176176documentation for information on this option. Note: this is merged with other
177177configuration passed to the route.
178178
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ async function startOrigin () {
1111 } )
1212
1313 origin . get ( '/redirect' , async ( request , reply ) => {
14- return reply . redirect ( 302 , 'https://fastify.io ' )
14+ return reply . redirect ( 302 , 'https://fastify.dev ' )
1515 } )
1616
1717 origin . get ( '/a' , async ( request , reply ) => {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ async function run () {
1919 } )
2020
2121 origin . get ( '/redirect' , async ( request , reply ) => {
22- return reply . redirect ( 302 , 'https://fastify.io ' )
22+ return reply . redirect ( 302 , 'https://fastify.dev ' )
2323 } )
2424
2525 origin . post ( '/this-has-data' , async ( request , reply ) => {
@@ -121,7 +121,7 @@ async function run () {
121121 followRedirect : false
122122 }
123123 )
124- t . equal ( location , 'https://fastify.io ' )
124+ t . equal ( location , 'https://fastify.dev ' )
125125 t . equal ( statusCode , 302 )
126126 } )
127127
@@ -147,7 +147,7 @@ async function run () {
147147 followRedirect : false
148148 }
149149 )
150- t . equal ( location , 'https://fastify.io ' )
150+ t . equal ( location , 'https://fastify.dev ' )
151151 t . equal ( statusCode , 302 )
152152 } )
153153
You can’t perform that action at this time.
0 commit comments