passthru all headers

This commit is contained in:
Henry Hiles 2025-07-26 22:41:33 -04:00
commit 734787c7b4
No known key found for this signature in database

View file

@ -26,10 +26,7 @@ void main(List<String> argsRaw) async {
) async { ) async {
final authResponse = await http.get( final authResponse = await http.get(
settings.authUri, settings.authUri,
headers: { headers: request.headers,
if (request.headers['cookie'] != null)
'cookie': request.headers['cookie']!,
},
); );
if (authResponse.statusCode != 200) { if (authResponse.statusCode != 200) {