add original url
This commit is contained in:
parent
3dd6a77556
commit
605f32b3e8
2 changed files with 5 additions and 2 deletions
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
|
@ -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",
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue