Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
eb4b5db7
Commit
eb4b5db7
authored
Nov 08, 2012
by
Davis King
Browse files
Fixed clang warnings
parent
b9f8258f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dlib/server/server_http.cpp
dlib/server/server_http.cpp
+3
-3
No files found.
dlib/server/server_http.cpp
View file @
eb4b5db7
...
...
@@ -337,7 +337,7 @@ namespace dlib
// only send this header if the user hasn't told us to send another kind
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"
)
)
{
...
...
@@ -364,13 +364,13 @@ namespace dlib
out
<<
"HTTP/1.0 "
<<
outgoing
.
http_return
<<
" "
<<
outgoing
.
http_return_status
<<
"
\r\n
"
;
// 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
"
;
}
// 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
"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment