Skip to content

Commit

Permalink
[Infrastructure] Added missing header
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Oct 25, 2022
1 parent 259ca39 commit dc245d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/infrastructure/api_service.dart
Expand Up @@ -126,7 +126,10 @@ class ApiServiceImpl implements ApiService {
return headers;
}

Map<String, String> _getCommonApiHeaders() => {Env.commonHeaderName: 'true'};
Map<String, String> _getCommonApiHeaders() => {
Env.commonHeaderName: 'true',
'x-shiori-os': Platform.operatingSystem,
};

void _handleError(String caller, Object e, StackTrace s) {
if (e is http.ClientException) {
Expand Down

0 comments on commit dc245d9

Please sign in to comment.