flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

Escape " character in headers

Open mochar opened this issue 5 years ago • 3 comments

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!

mochar avatar Jul 27 '19 18:07 mochar

Could you create a pull request for it? My time is quite tight now, I can't promise to support it soon.

hnvn avatar Jul 29 '19 08:07 hnvn

I would like to work on this issue but I couldn't find any lead where I can start. How can I run/test flutter_downloader. Can you please give some direction to start.

muhib349 avatar Apr 23 '23 19:04 muhib349