add original url

This commit is contained in:
Henry Hiles 2025-07-26 23:02:26 -04:00
commit 605f32b3e8
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View file

@ -27,7 +27,10 @@ void main(List<String> argsRaw) async {
) async {
final authResponse = await http.get(
settings.authUri,
headers: request.headers,
headers: {
...request.headers,
'x-original-url': request.requestedUri.toString(),
},
);
if (authResponse.statusCode != 200) {