Skip to content

Commit

Permalink
Complete removal of cookie if it was set to null
Browse files Browse the repository at this point in the history
  • Loading branch information
sshamov committed Aug 21, 2013
1 parent b48c54f commit 9a95dff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/vibe/http/server.d
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,8 @@ final class HTTPServerResponse : HTTPResponse {
auto cookie = new Cookie();
cookie.path = path;
cookie.value = value;
if( value is null )
cookie.expires = Clock.currTime().add!("months")(-1).toSimpleString();
cookies[name] = cookie;
return cookie;
}
Expand Down

0 comments on commit 9a95dff

Please sign in to comment.