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
ad1c530a
Commit
ad1c530a
authored
Oct 23, 2018
by
M Furkan USLU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small refactorings
parent
3f3c4772
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 @
ad1c530a
...
...
@@ -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 @
ad1c530a
...
...
@@ -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 @
ad1c530a
...
...
@@ -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