-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #2222 #2223
fix #2222 #2223
Conversation
ping @s-ludwig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ping @wilzbach |
inet/vibe/inet/url.d
Outdated
dst.put(":"); | ||
if (isDoubleSlashSchema(schema)) | ||
dst.put("//"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the schema, the generated string is not a URL anymore. Of course it could be argued to extend this class into a full URI, but since this is just a side-effect, I'd like to keep that a separate question. Without having looked at the JS generation code too closely, to me it seems like this optimization should be handled there. If I'm not mistaken, this should also be made an opt-in/out setting, since the JS might be accessed from page hosted on a different server or sub domain.
Travis failures are very likely related to vibe-d/eventcore#86 |
@wilzbach, I only see |
Merged #2216, which fixes the Meson build error. |
fout.put(" + "); | ||
fmtParam(fout, p); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to have an assert(false, "Empty route function path");
here in the else case, so that no invalid JavaScript can be produced here. (the else if
could also be merged to a single line without an extra block)
else fout.formattedWrite("toRestString(%s)", p.text); | ||
|
||
// if url not empty | ||
if (intf.baseURL != intf.basePath) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think using intf.baseURL != URL.init
would make this a bit more obvious here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intf.baseURL
is a string
, not URL
. URL.init
is empty, baseURL == basePath
can be if URL.init
is passed to RestInterface.ctor
here
I don't understand why RestInterface
use strings
for baseURL
and basePath
instead URL
for both. Is it principled? Why URL
can't be initialize with empty string? Why URL.init
prints not empty string? Maybe it can be changed? I think it can simplify code.
Otherwise, apart from the failures looks good to merge now to me too. Would also be good to make a final squash/rebase to get rid of the two merge commits. |
Look at the vibe-core failures:
Similar errors for vibe.d with the vibe-core subconfiguration happen on the Project Tester since yesterday, which is why I think it's due to vibe-d/eventcore#86 |
ping @wilzbach |
The remaining failures were just due to stdx-allocator still failing for the Meson build (I guess it just requires a new version tag). |
No description provided.