mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
11 lines
388 B
Dart
11 lines
388 B
Dart
import 'package:fladder/util/application_info.dart';
|
|
import 'package:xid/xid.dart';
|
|
|
|
Map<String, String> generateHeader(ApplicationInfo application) {
|
|
var xid = Xid();
|
|
return {
|
|
'content-type': 'application/json',
|
|
'x-emby-authorization':
|
|
'MediaBrowser Client="${application.name}", Device="${application.os}", DeviceId="$xid", Version="${application.version}"',
|
|
};
|
|
}
|