Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Eduardo Florence
2020-12-16 19:30:54 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78b14f6ed010334445600db74e1f75533efc61fe
78b14f6e
1 parent
5fab9186
Body string for content-type application/x-www-form-urlencoded
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
lib/get_connect/http/src/http.dart
lib/get_connect/http/src/http.dart
View file @
78b14f6
...
...
@@ -117,6 +117,10 @@ class GetHttpClient {
jsonString
=
'
$paramName
=
${Uri.encodeQueryComponent(jsonString)}
'
;
}
}
}
else
if
(
body
is
String
)
{
bodyBytes
=
utf8
.
encode
(
body
);
headers
[
'content-length'
]
=
bodyBytes
.
length
.
toString
();
headers
[
'content-type'
]
=
contentType
??
defaultContentType
;
}
else
if
(
body
==
null
)
{
headers
[
'content-type'
]
=
contentType
??
defaultContentType
;
headers
[
'content-length'
]
=
'0'
;
...
...
Please
register
or
login
to post a comment