File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ description "Application server that transforms JSON-RPC calls into SQL queries
33authors "Denis Feklushkin <denis.feklushkin@gmail.com>"
44license "MIT"
55copyright "Copyright © 2016"
6- dependency "vibe-d:http" version="~>0.9.2 "
7- dependency "dpq2" version="~>1.0.15 "
8- dependency "vibe-d-postgresql" version="~>3.1.0-rc.1 "
6+ dependency "vibe-d:http" version="~>0.9.6 "
7+ dependency "dpq2" version="~>1.1.7-rc.1 "
8+ dependency "vibe-d-postgresql" version="~>3.1.3 "
99targetType "executable"
1010
1111subPackage {
Original file line number Diff line number Diff line change @@ -665,8 +665,8 @@ struct RpcRequest
665665 {
666666 RpcRequest r;
667667
668- enforce(req.path.length > 0 );
669- r.methodName = req.path [1 .. $]; // strips first '/'
668+ enforce(! req.requestPath.empty );
669+ r.methodName = req.requestPath.toString [1 .. $]; // strips first '/'
670670
671671 foreach (string key, ref value; req.query.byKeyValue )
672672 r.namedParamsStringValues[key] = value;
@@ -682,8 +682,8 @@ struct RpcRequest
682682 {
683683 RpcRequest r;
684684
685- enforce(req.path.length > 0 );
686- r.methodName = req.path [1 .. $]; // strips first '/'
685+ enforce(! req.requestPath.empty );
686+ r.methodName = req.requestPath.toString [1 .. $]; // strips first '/'
687687
688688 foreach (string key, ref value; j)
689689 r.namedParams[key] = value;
You can’t perform that action at this time.
0 commit comments