Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
url instead of path
  • Loading branch information
SentryMan committed Oct 19, 2023
commit 6e6bba87acc460bf8efecb16ec9e77c5b511cc4c
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ final class DUrlBuilder implements UrlBuilder {

@Override
public UrlBuilder url(String url) {
buffer.delete(0, buffer.length());

if (url.startsWith("http") && url.contains("://")) {
buffer.setLength(0);
}

buffer.append(url);
return this;
}

@Override
public UrlBuilder path(String path) {
if (path.startsWith("http") && path.contains("://")) {
return url(path);
}
buffer.append("/").append(path);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ private void writePaths(Set<PathSegments.Segment> segments) {
continue;
}
if (first) {
writer.append(".path(\"");
writer.append(".url(\"");
first = false;
}
if (noSlash) {
Expand Down