-
Notifications
You must be signed in to change notification settings - Fork 56
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
Replace xhr with fetch #35
Conversation
Can you add more on the reasoning for this change? |
Apparently nginx doesn't handle spaces in mimetypes so we need to do something here.
Could you expand on this? I didn't see any checks that make sure that the content type are |
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 have the same question as @muan regarding the removal of content negotiation. We need to be able to identify these requests in the server so full error pages and 404 pages are not served in responses. Removing content negotiation in auto-check needs to be revisited as well.
Yeah, looking at this more I didn't realize that we have this header in so many components already and it seemed to be missing in I'm still not sure auto complete needs the |
What I meant is that the element needs a HTML fragment response, and users of the element needs to know that somehow. This is done properly through content negotiation. Content negotiation is thus essential because the element requires this specific type of content to do its primary job; otherwise, apps can be sending back a JSON string because the element did not ask for the right thing, and the element wouldn’t work. I view “asking for the right thing” as the element’s responsibility, especially considering all the troubles we’ve had with
|
Best viewed, commit and commit.
Mostly wanted to drop the
text/html; fragment
accept header and did that in 6703c3e. This matches<auto-check>
which does not check fortext/html; fragment
anymore. Otherwise cleaned up a few things so it's more similar to the work we've done in<auto-check>
. Using fetch and minor things.