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

2
.vscode/launch.json vendored
View file

@ -6,7 +6,7 @@
"configurations": [ "configurations": [
{ {
"name": "lasuite-docs-proxy", "name": "lasuite-docs-proxy",
"program": "bin/lasuite_docs_proxy.dart", "program": "bin/main.dart",
"args": [ "args": [
"--socket", "--socket",
"./socket", "./socket",

View file

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