Skip to content

Commit

Permalink
Update base_response.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Jan 12, 2024
1 parent 3159201 commit dacee59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/http/lib/src/base_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ abstract class BaseResponse {
const _tokenChars = r"!#$%&'*+\-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`"
'abcdefghijklmnopqrstuvwxyz|~';

// Splits comma-seperated headers.
// Splits comma-seperated header values.
var _headerSplitter = RegExp(r'[ \t]*,[ \t]*');

// Splits comma-seperated "Set-Cookie" headers.
// Splits comma-seperated "Set-Cookie" header values.
//
// Set-Cookie strings can contain commas. In particular, the following
// productions defined in RFC-6265, section 4.1.1:
Expand All @@ -95,7 +95,7 @@ var _headerSplitter = RegExp(r'[ \t]*,[ \t]*');
// would both be represented with:
// "lang=en; Path=/foo/,SID=x23"
//
// The idea behind this RegExp is that ",<valid token>=" is more likely to
// The idea behind this regex is that ",<valid token>=" is more likely to
// start a new <cookie-pair> then be part of <path-value> or <extension-av>.
//
// See https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
Expand Down

0 comments on commit dacee59

Please sign in to comment.