mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 16:53:26 +00:00
Merge pull request #9 from Jordaar/dev
Add X-Final-Destination header to retrieve final redirected URL
This commit is contained in:
@@ -102,6 +102,9 @@ async function handleRequest(oRequest, destination, iteration = 0) {
|
||||
// Append to/Add Vary header so browser will cache response correctly
|
||||
response.headers.append('Vary', 'Origin');
|
||||
|
||||
// Add X-Final-Destination header to get the final url
|
||||
response.headers.set('X-Final-Destination', oResponse.url);
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user