File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -129,20 +129,8 @@ void http_response::decorate_response(MHD_Response* response)
129129 MHD_add_response_header (response, (*it).first .c_str (), (*it).second .c_str ());
130130 for (it=footers.begin () ; it != footers.end (); ++it)
131131 MHD_add_response_footer (response, (*it).first .c_str (), (*it).second .c_str ());
132- {
133- bool first = true ;
134- stringstream ss;
135- for (it=cookies.begin (); it != cookies.end (); ++it)
136- {
137- if (!first)
138- ss << " , " ;
139- else
140- first = false ;
141- ss << (*it).first << " =" << (*it).second ;
142- }
143- if (!first)
144- MHD_add_response_header (response, " Set-Cookie" , ss.str ().c_str ());
145- }
132+ for (it=cookies.begin (); it != cookies.end (); ++it)
133+ MHD_add_response_header (response, " Set-Cookie" , ((*it).first + " =" + (*it).second ).c_str ());
146134}
147135
148136void cache_response::decorate_response (MHD_Response* response)
You can’t perform that action at this time.
0 commit comments