2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 02:35:27 +00:00

Merge pull request #71 from SchrodingersGat/foreign-chars-fix

Foreign chars fix
This commit is contained in:
Oliver
2021-09-17 22:39:18 +10:00
committed by GitHub
6 changed files with 10 additions and 7 deletions

View File

@ -8,7 +8,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:4.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

View File

@ -785,8 +785,11 @@ class InvenTreeAPI {
Future<APIResponse> completeRequest(HttpClientRequest request, {String? data, int? statusCode}) async {
if (data != null && data.isNotEmpty) {
request.headers.set(HttpHeaders.contentLengthHeader, data.length.toString());
request.add(utf8.encode(data));
var encoded_data = utf8.encode(data);
request.headers.set(HttpHeaders.contentLengthHeader, encoded_data.length.toString());
request.add(encoded_data);
}
APIResponse response = new APIResponse(

View File

@ -28,7 +28,7 @@ packages:
name: audioplayers
url: "https://pub.dartlang.org"
source: hosted
version: "0.19.0"
version: "0.20.1"
back_button_interceptor:
dependency: transitive
description:

View File

@ -39,7 +39,7 @@ dependencies:
sembast: ^3.1.0+2 # NoSQL data storage
one_context: ^1.1.0 # Dialogs without requiring context
infinite_scroll_pagination: ^3.1.0 # Let the server do all the work!
audioplayers: ^0.19.0 # Play audio files
audioplayers: ^0.20.1 # Play audio files
dropdown_search: 0.6.3 # Dropdown autocomplete form fields
path: