Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
eb4b5db7
Commit
eb4b5db7
authored
Nov 09, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed clang warnings
parent
b9f8258f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
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