Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
2978d45d
Unverified
Commit
2978d45d
authored
Oct 24, 2018
by
Dennis Jenkins
Committed by
GitHub
Oct 24, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #336 from mfurkanuslu/master
small refactorings
parents
9829d5e6
ad1c530a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/client/client.cc
src/client/client.cc
+1
-1
src/common/description.cc
src/common/description.cc
+1
-1
src/server/router.cc
src/server/router.cc
+1
-1
No files found.
src/client/client.cc
View file @
2978d45d
...
...
@@ -41,7 +41,7 @@ splitUrl(const std::string& url) {
}
struct
ExceptionPrinter
{
void
operator
()(
std
::
exception_ptr
exc
)
{
void
operator
()(
std
::
exception_ptr
exc
)
const
{
try
{
std
::
rethrow_exception
(
exc
);
}
catch
(
const
std
::
exception
&
e
)
{
...
...
src/common/description.cc
View file @
2978d45d
...
...
@@ -418,7 +418,7 @@ Swagger::install(Rest::Router& router) {
return
res
;
}
bool
matches
(
const
Rest
::
Request
&
req
)
{
bool
matches
(
const
Rest
::
Request
&
req
)
const
{
auto
res
=
req
.
resource
();
if
(
value
==
res
)
return
true
;
...
...
src/server/router.cc
View file @
2978d45d
...
...
@@ -282,7 +282,7 @@ Pistache::Rest::SegmentTreeNode::findRoute(
// in case of more than one optional at this point, as it is an
// ambuiguity, it is resolved by using the first optional
auto
optional
=
optional_
.
begin
();
std
::
string
opt
{
optional
->
first
.
data
(),
optional
->
first
.
length
()};
//
std::string opt {optional->first.data(), optional->first.length()};
return
optional
->
second
->
findRoute
(
path
,
params
,
splats
);
}
else
if
(
route_
==
nullptr
)
{
// if we are here but route is null, we reached this point
...
...
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