Fixed conversion of GString to String; fixes gh-762
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -35,6 +35,10 @@ class UrlPath extends Url {
|
||||
super(path)
|
||||
}
|
||||
|
||||
UrlPath(GString path) {
|
||||
super(path)
|
||||
}
|
||||
|
||||
UrlPath(DslProperty path) {
|
||||
super(path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user