فهرست منبع

Fixed misleading CookieOptions.HttpOnly summary (#39937)

Albert Ragány-Németh 4 سال پیش
والد
کامیت
55c39903b2
2فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 5 5
      src/Http/Http.Abstractions/src/CookieBuilder.cs
  2. 1 1
      src/Http/Http.Features/src/CookieOptions.cs

+ 5 - 5
src/Http/Http.Abstractions/src/CookieBuilder.cs

@@ -27,7 +27,7 @@ public class CookieBuilder
     /// The cookie path.
     /// </summary>
     /// <remarks>
-    /// Determines the value that will set on <see cref="CookieOptions.Path"/>.
+    /// Determines the value that will be set for <see cref="CookieOptions.Path"/>.
     /// </remarks>
     public virtual string? Path { get; set; }
 
@@ -35,15 +35,15 @@ public class CookieBuilder
     /// The domain to associate the cookie with.
     /// </summary>
     /// <remarks>
-    /// Determines the value that will set on <see cref="CookieOptions.Domain"/>.
+    /// Determines the value that will be set for <see cref="CookieOptions.Domain"/>.
     /// </remarks>
     public virtual string? Domain { get; set; }
 
     /// <summary>
-    /// Indicates whether a cookie is accessible by client-side script.
+    /// Indicates whether a cookie is inaccessible by client-side script.
     /// </summary>
     /// <remarks>
-    /// Determines the value that will set on <see cref="CookieOptions.HttpOnly"/>.
+    /// Determines the value that will be set on <see cref="CookieOptions.HttpOnly"/>.
     /// </remarks>
     public virtual bool HttpOnly { get; set; }
 
@@ -51,7 +51,7 @@ public class CookieBuilder
     /// The SameSite attribute of the cookie. The default value is <see cref="SameSiteMode.Unspecified"/>
     /// </summary>
     /// <remarks>
-    /// Determines the value that will set on <see cref="CookieOptions.SameSite"/>.
+    /// Determines the value that will be set for <see cref="CookieOptions.SameSite"/>.
     /// </remarks>
     public virtual SameSiteMode SameSite { get; set; } = SameSiteMode.Unspecified;
 

+ 1 - 1
src/Http/Http.Features/src/CookieOptions.cs

@@ -47,7 +47,7 @@ public class CookieOptions
     public SameSiteMode SameSite { get; set; } = SameSiteMode.Unspecified;
 
     /// <summary>
-    /// Gets or sets a value that indicates whether a cookie is accessible by client-side script.
+    /// Gets or sets a value that indicates whether a cookie is inaccessible by client-side script.
     /// </summary>
     /// <returns>true if a cookie must not be accessible by client-side script; otherwise, false.</returns>
     public bool HttpOnly { get; set; }