Skip to content

Commit

Permalink
📝 Add spec comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Oct 1, 2023
1 parent c26840c commit af40b43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/cookie_manager/lib/src/cookie_mgr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class CookieManager extends Interceptor {
// users will be available to handle cookies themselves.
final isRedirectRequest = statusCode >= 300 && statusCode < 400;
// Saving cookies for the original site.
// Spec: https://www.rfc-editor.org/rfc/rfc7231#section-7.1.2.
final originalUri = response.requestOptions.uri;
final realUri = originalUri.resolveUri(response.realUri);
await cookieJar.saveFromResponse(realUri, cookies);
Expand Down

0 comments on commit af40b43

Please sign in to comment.