You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using TestRequest to set a cookie with a specified path, the path information is not retained when building the `HttpRequest. This results in the path attribute missing in the generated cookie, causing inconsistencies in test environments compared to actual application logic.
Expected Behavior
The HttpRequest should retain all cookie attributes, including the path, as defined when setting the cookie in TestRequest`.
Current Behavior
The cookie path is missing in the generated HttpRequest cookie, even when explicitly set in TestRequest`.
Steps to Reproduce (for bugs)
Here is a minimal example demonstrating the issue (currently the test fails):
Rust Version (I.e, output of rustc -V): rustc 1.82.0
Actix Web Version: 4.9.0
The text was updated successfully, but these errors were encountered:
3schwartz
changed the title
Cookie path missing in HttpRequest when using TestRequest
Cookie Path Attribute Missing in HttpRequest When Using TestRequestNov 1, 2024
When using
TestRequest
to set a cookie with a specified path, the path information is not retained when building the `HttpRequest. This results in the path attribute missing in the generated cookie, causing inconsistencies in test environments compared to actual application logic.Expected Behavior
The
HttpRequest
should retain all cookie attributes, including the path, as defined when setting the cookie in TestRequest`.Current Behavior
The cookie path is missing in the generated
HttpRequest
cookie, even when explicitly set in TestRequest`.Steps to Reproduce (for bugs)
Here is a minimal example demonstrating the issue (currently the test fails):
Your Environment
rustc -V
): rustc 1.82.0The text was updated successfully, but these errors were encountered: