-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[geometry] Meshcat's server returns 404 (not 200) on failures #20790
[geometry] Meshcat's server returns 404 (not 200) on failures #20790
Conversation
4ea917c
to
6a0d3bf
Compare
+@SeanCurtis-TRI for feature review, please. |
6a0d3bf
to
229caa1
Compare
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.
It seems that this PR is predominantly introducing and apply the ReadFile
functions. Neither the PR title nor the commit even hints at it.
+@sherm1 for platform review.
Reviewed 21 of 21 files at r1, all commit messages.
Reviewable status: LGTM missing from assignee sherm1(platform)
To my eye, "start to carve helper functions" at least hints at it. I guess I could add the new function name to the commit body on the next rebase, if you think it helps? |
229caa1
to
fbc2753
Compare
I found a lint error so I pushed a rebase anyway with a new note. |
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.
Nice cleanup! There are a few CI errors. Platform pending CI
Reviewed 20 of 21 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: 1 unresolved discussion
geometry/meshcat_internal.h
line 11 at r2 (raw file):
namespace internal { /* Returns the static content for the given URL, or an nullopt when the URL is
typo: "an nullopt" -> "a nullopt"
fbc2753
to
3a5b93b
Compare
This is also an opportunity to start to carve helper functions and classes out into separate files for easier maintenance. Two of the new functions are public and widely relevant: ReadFile and ReadFileOrThrow.
3a5b93b
to
fec399e
Compare
Towards #19598.
Returning cacheable 200 responses with empty bodies is seriously misleading to the browser-side code.
This change is