remove headers when on web

This commit is contained in:
zoe 2022-09-03 22:41:39 +02:00
parent e7dd160a58
commit 3549d61045
1 changed files with 3 additions and 2 deletions

View File

@ -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"
};