fluttercommunity / fluttercommunity/flutter_downloader
Escape " character in headers
Open
bug
good first issue
- Dominant language
- Kotlin
- Stars
- 940
- Forks
- 561
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 1
Description
One of my headers has a value that contains quotation marks ("). In your java code this causes an error as strings are defined by the same characters. I solved this by escaping the character manually:
authHeader['Cookie'] = authHeader['Cookie'].replaceAll('"', '\\"');
I think in java you can also use the single quotation marks (') which should solve this problem. Thanks for the nice package!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.