mirror of https://github.com/davisking/dlib.git
Fixed clang warnings
This commit is contained in:
parent
b9f8258f1d
commit
eb4b5db7bf
|
@ -337,7 +337,7 @@ namespace dlib
|
||||||
|
|
||||||
// only send this header if the user hasn't told us to send another kind
|
// only send this header if the user hasn't told us to send another kind
|
||||||
bool has_content_type = false, has_location = false;
|
bool has_content_type = false, has_location = false;
|
||||||
for( typename key_value_map::const_iterator ci = response_headers.begin(); ci != response_headers.end(); ++ci )
|
for(key_value_map::const_iterator ci = response_headers.begin(); ci != response_headers.end(); ++ci )
|
||||||
{
|
{
|
||||||
if ( !has_content_type && strings_equal_ignore_case(ci->first , "content-type") )
|
if ( !has_content_type && strings_equal_ignore_case(ci->first , "content-type") )
|
||||||
{
|
{
|
||||||
|
@ -364,13 +364,13 @@ namespace dlib
|
||||||
out << "HTTP/1.0 " << outgoing.http_return << " " << outgoing.http_return_status << "\r\n";
|
out << "HTTP/1.0 " << outgoing.http_return << " " << outgoing.http_return_status << "\r\n";
|
||||||
|
|
||||||
// Set any new headers
|
// Set any new headers
|
||||||
for( typename key_value_map::const_iterator ci = response_headers.begin(); ci != response_headers.end(); ++ci )
|
for(key_value_map::const_iterator ci = response_headers.begin(); ci != response_headers.end(); ++ci )
|
||||||
{
|
{
|
||||||
out << ci->first << ": " << ci->second << "\r\n";
|
out << ci->first << ": " << ci->second << "\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// set any cookies
|
// set any cookies
|
||||||
for( typename key_value_map::const_iterator ci = new_cookies.begin(); ci != new_cookies.end(); ++ci )
|
for(key_value_map::const_iterator ci = new_cookies.begin(); ci != new_cookies.end(); ++ci )
|
||||||
{
|
{
|
||||||
out << "Set-Cookie: " << urlencode(ci->first) << '=' << urlencode(ci->second) << "\r\n";
|
out << "Set-Cookie: " << urlencode(ci->first) << '=' << urlencode(ci->second) << "\r\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue