Skip to content
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(fetch): multiple data: url fixes & move tests to wpt runner #1678

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

KhafraDev
Copy link
Member

Changes:

  1. Correctly passes the extract value flag in collectAnHttpQuotedString which caused at least 1 test to fail.
  2. Does not trim leading http whitespace in parseMIMEType which caused at least 1 test to fail.
  3. Replaces custom serialization with spec-compliant one which caused multiple tests to fail.
  4. Moves WPT data: url and base64 tests to the WPT runner.
  5. Changes the url structure in the wpt runner's server to match the folder structure.
  6. Update wpt data: url tests to include new tests.

@@ -121,7 +119,7 @@ test('https://mimesniff.spec.whatwg.org/#parse-a-mime-type', (t) => {
t.same(parseMIMEType('text/html;charset="shift_jis"iso-2022-jp'), {
type: 'text',
subtype: 'html',
parameters: new Map([['charset', '"shift_jis"']])
parameters: new Map([['charset', 'shift_jis']])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really sure where I got the quotes from but this is even the wrong output as shown in https://mimesniff.spec.whatwg.org/#example-mime-type-parser-trailing-garbage

@mcollina mcollina merged commit b6ae2a8 into nodejs:main Oct 3, 2022
@KhafraDev KhafraDev deleted the data-url-fixes branch October 3, 2022 15:12
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants