New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HeaderValue.parse() preserveBackslash argument is not working #31081

sgrekhov opened this Issue Oct 12, 2017 · 0 comments


None yet
2 participants

sgrekhov commented Oct 12, 2017

Seems that HeaderValue.parse() preserveBackslash argument does not work.

import "dart:io";

main() {
  String toParse = "value1\\value2; param1=val1\\val11; param2=val2";
  HeaderValue parsed = HeaderValue.parse(toParse, preserveBackslash: false);
  print(parsed); // value1\value2; param2=val2; param1=val1\val11

  parsed = HeaderValue.parse(toParse, preserveBackslash: true);
  print(parsed); // value1\value2; param2=val2; param1=val1\val11

The example abive shows no any difference between preserveBackslash: false and preserveBackslash: true. How it should work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment