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
444dd70d
Commit
444dd70d
authored
Nov 07, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed try/catch block since it is now redundant
parent
1db057d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
server_http_ex.cpp
examples/server_http_ex.cpp
+0
-8
No files found.
examples/server_http_ex.cpp
View file @
444dd70d
...
@@ -23,8 +23,6 @@ class web_server : public server::http_1a_c
...
@@ -23,8 +23,6 @@ class web_server : public server::http_1a_c
const
incoming_things
&
incoming
,
const
incoming_things
&
incoming
,
outgoing_things
&
outgoing
outgoing_things
&
outgoing
)
)
{
try
{
{
ostringstream
sout
;
ostringstream
sout
;
// We are going to send back a page that contains an HTML form with two text input fields.
// We are going to send back a page that contains an HTML form with two text input fields.
...
@@ -79,16 +77,10 @@ class web_server : public server::http_1a_c
...
@@ -79,16 +77,10 @@ class web_server : public server::http_1a_c
sout
<<
"<br/>"
<<
ci
->
first
<<
": "
<<
ci
->
second
<<
endl
;
sout
<<
"<br/>"
<<
ci
->
first
<<
": "
<<
ci
->
second
<<
endl
;
}
}
sout
<<
"</body> </html>"
;
sout
<<
"</body> </html>"
;
return
sout
.
str
();
return
sout
.
str
();
}
}
catch
(
exception
&
e
)
{
return
e
.
what
();
}
}
};
};
...
...
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