remove headers when on web
This commit is contained in:
parent
e7dd160a58
commit
3549d61045
|
@ -1,3 +1,4 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:loris/business_logic/settings.dart';
|
||||
|
||||
|
@ -6,8 +7,8 @@ const String version = "v0.2 'the themes update'";
|
|||
const String useragent = "$name/$version";
|
||||
const String website = "https://git.kittycat.homes/zoe/loris";
|
||||
|
||||
const Map<String, String> defaultHeaders = {
|
||||
"User-Agent": useragent,
|
||||
final Map<String, String> defaultHeaders = {
|
||||
if (!kIsWeb) "User-Agent": useragent,
|
||||
"accept": "application/json",
|
||||
"Content-Type": "application/json"
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue