Skip to content

Commit

Permalink
Merge pull request #293 from sshamov/master
Browse files Browse the repository at this point in the history
Complete removal of cookie if it was set to null
  • Loading branch information
s-ludwig committed Aug 21, 2013
2 parents ed7137b + 9a95dff commit 7cdd77d
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 7cdd77d

Please sign in to comment.