Fixed conversion of GString to String; fixes gh-762

This commit is contained in:
Marcin Grzejszczak
2018-10-23 20:21:44 +02:00
parent 78048826a3
commit 38afb59076
3 changed files with 16 additions and 2 deletions

View File

@@ -101,6 +101,10 @@ class Request extends Common {
this.urlPath = new UrlPath(path)
}
void urlPath(GString path) {
this.urlPath = new UrlPath(path)
}
void urlPath(DslProperty path) {
this.urlPath = new UrlPath(path)
}
@@ -111,6 +115,12 @@ class Request extends Common {
closure()
}
void urlPath(GString path, @DelegatesTo(UrlPath) Closure closure) {
this.urlPath = new UrlPath(path)
closure.delegate = urlPath
closure()
}
void urlPath(DslProperty path, @DelegatesTo(UrlPath) Closure closure) {
this.urlPath = new UrlPath(path)
closure.delegate = urlPath

View File

@@ -35,6 +35,10 @@ class UrlPath extends Url {
super(path)
}
UrlPath(GString path) {
super(path)
}
UrlPath(DslProperty path) {
super(path)
}