Mercurial > hg > orthanc
comparison Core/HttpServer/HttpOutput.cpp @ 656:08eca5d86aad
fixes to cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Nov 2013 11:19:31 +0100 |
parents | 6f8ae46ed90e |
children | 2d0a347e8cfc |
comparison
equal
deleted
inserted
replaced
655:93adc693cc60 | 656:08eca5d86aad |
---|---|
87 void HttpOutput::SendOkHeader(const Header& header) | 87 void HttpOutput::SendOkHeader(const Header& header) |
88 { | 88 { |
89 std::string s = "HTTP/1.1 200 OK\r\n"; | 89 std::string s = "HTTP/1.1 200 OK\r\n"; |
90 | 90 |
91 for (Header::const_iterator | 91 for (Header::const_iterator |
92 it = header.begin(); it != header.end(); it++) | 92 it = header.begin(); it != header.end(); ++it) |
93 { | 93 { |
94 s += it->first + ": " + it->second + "\r\n"; | 94 s += it->first + ": " + it->second + "\r\n"; |
95 } | 95 } |
96 | 96 |
97 s += "\r\n"; | 97 s += "\r\n"; |
142 | 142 |
143 void HttpOutput::PrepareCookies(Header& header, | 143 void HttpOutput::PrepareCookies(Header& header, |
144 const HttpHandler::Arguments& cookies) | 144 const HttpHandler::Arguments& cookies) |
145 { | 145 { |
146 for (HttpHandler::Arguments::const_iterator it = cookies.begin(); | 146 for (HttpHandler::Arguments::const_iterator it = cookies.begin(); |
147 it != cookies.end(); it++) | 147 it != cookies.end(); ++it) |
148 { | 148 { |
149 header.push_back(std::make_pair("Set-Cookie", it->first + "=" + it->second)); | 149 header.push_back(std::make_pair("Set-Cookie", it->first + "=" + it->second)); |
150 } | 150 } |
151 } | 151 } |
152 | 152 |