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
444dd70d
Commit
444dd70d
authored
Nov 07, 2012
by
Davis King
Browse files
Removed try/catch block since it is now redundant
parent
1db057d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
60 deletions
+52
-60
examples/server_http_ex.cpp
examples/server_http_ex.cpp
+52
-60
No files found.
examples/server_http_ex.cpp
View file @
444dd70d
...
...
@@ -23,8 +23,6 @@ class web_server : public server::http_1a_c
const
incoming_things
&
incoming
,
outgoing_things
&
outgoing
)
{
try
{
ostringstream
sout
;
// 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
sout
<<
"<br/>"
<<
ci
->
first
<<
": "
<<
ci
->
second
<<
endl
;
}
sout
<<
"</body> </html>"
;
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