Skip to content

Commit

Permalink
复用 request.cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed May 7, 2017
1 parent 9851735 commit f1b89d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fibjs/src/http/HttpRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ result_t HttpRequest::clear()
m_address.assign("/", 1);
m_queryString.clear();

m_cookies.Release();
if (m_cookies)
m_cookies->clear();

m_query.Release();
m_form.Release();

Expand Down

0 comments on commit f1b89d3

Please sign in to comment.