Skip to content

fix: Default decode any UTF-8 characters #895

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

Closed
wants to merge 99 commits into from
Closed

fix: Default decode any UTF-8 characters #895

wants to merge 99 commits into from

Conversation

medz
Copy link

@medz medz commented Mar 21, 2023

Refs: #789

@google-cla
Copy link

google-cla bot commented Mar 21, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@natebosch natebosch added the next-breaking-release Issues that are worth doing but need to wait for a breaking version bump label May 10, 2023
@natebosch
Copy link
Member

This is a breaking behavior change.

@natebosch
Copy link
Member

natebosch commented May 10, 2023

@brianquinlan - this might be worth trying to land while revving to 1.0.0 - I think there were only a few internal breakages.

I had a different fix for this that I was trying, I think this PR would break usage of the text content type.

The fix I was running with was

diff --git a/pkgs/http/lib/src/response.dart b/pkgs/http/lib/src/response.dart
index 1ba7c46..48ecb03 100644
--- a/pkgs/http/lib/src/response.dart
+++ b/pkgs/http/lib/src/response.dart
@@ -68,8 +68,11 @@ class Response extends BaseResponse {
 ///
 /// Defaults to [latin1] if the headers don't specify a charset or if that
 /// charset is unknown.
-Encoding _encodingForHeaders(Map<String, String> headers) =>
-    encodingForCharset(_contentTypeForHeaders(headers).parameters['charset']);
+Encoding _encodingForHeaders(Map<String, String> headers) {
+  final contentType = _contentTypeForHeaders(headers);
+  final defaultEncoding = contentType.type == 'text' ? latin1 : utf8;
+  return encodingForCharset(contentType.parameters['charset'], defaultEncoding);
+}
 
 /// Returns the [MediaType] object for the given headers's content-type.
 ///
diff --git a/pkgs/http/lib/src/utils.dart b/pkgs/http/lib/src/utils.dart
index e79108e..0d8f748 100644
--- a/pkgs/http/lib/src/utils.dart
+++ b/pkgs/http/lib/src/utils.dart
@@ -25,7 +25,7 @@ String mapToQuery(Map<String, String> map, {Encoding? encoding}) {
 ///
 /// Returns [fallback] if [charset] is null or if no [Encoding] was found that
 /// corresponds to [charset].
-Encoding encodingForCharset(String? charset, [Encoding fallback = latin1]) {
+Encoding encodingForCharset(String? charset, Encoding fallback) {
   if (charset == null) return fallback;
   return Encoding.getByName(charset) ?? fallback;
 }

cl/385011986 is a (stale) CL if you'd like to try it out internally

brianquinlan and others added 16 commits May 11, 2023 16:46
Bumps [actions/labeler](https://github.com/actions/labeler) from 4.0.2 to 4.0.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/labeler/releases">actions/labeler's releases</a>.</em></p>
<blockquote>
<h2>v4.0.4</h2>
<h2>What's Changed</h2>
<ul>
<li>Add and configure ESLint and update configuration for Prettier by <a href="https://github.com/IvanZosimov"><code>@�IvanZosimov</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/508">actions/labeler#508</a></li>
<li>Turn on automatic update of ESLint and Prettier configuration files by <a href="https://github.com/IvanZosimov"><code>@�IvanZosimov</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/509">actions/labeler#509</a></li>
<li>Automatic update of configuration files from 03/12/2023 by <a href="https://github.com/github-actions"><code>@�github-actions</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/513">actions/labeler#513</a></li>
<li>Bump eslint-config-prettier from 8.6.0 to 8.8.0 by <a href="https://github.com/dependabot"><code>@�dependabot</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/520">actions/labeler#520</a></li>
<li>Rebuild minimatch by <a href="https://github.com/panticmilos"><code>@�panticmilos</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/522">actions/labeler#522</a></li>
<li>Bump license version by <a href="https://github.com/panticmilos"><code>@�panticmilos</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/525">actions/labeler#525</a></li>
<li>Fix glob bug in package.json scripts section by <a href="https://github.com/IvanZosimov"><code>@�IvanZosimov</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/528">actions/labeler#528</a></li>
<li>Bump prettier from 2.8.7 to 2.8.8 by <a href="https://github.com/dependabot"><code>@�dependabot</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/544">actions/labeler#544</a></li>
<li>Bump eslint from 8.40.0 to 8.41.0 by <a href="https://github.com/dependabot"><code>@�dependabot</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/569">actions/labeler#569</a></li>
<li>Bump <code>@�typescript-eslint/parser</code> from 5.59.6 to 5.59.7 by <a href="https://github.com/dependabot"><code>@�dependabot</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/573">actions/labeler#573</a></li>
<li>Bump <code>@�typescript-eslint/eslint-plugin</code> from 5.59.6 to 5.59.7 by <a href="https://github.com/dependabot"><code>@�dependabot</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/572">actions/labeler#572</a></li>
<li>Remove implicit dependencies by <a href="https://github.com/nikolai-laevskii"><code>@�nikolai-laevskii</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/571">actions/labeler#571</a></li>
<li>Automatic update of configuration files from 05/23/2023 by <a href="https://github.com/github-actions"><code>@�github-actions</code></a> in <a href="https://redirect.github.com/actions/labeler/pull/570">actions/labeler#570</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/github-actions"><code>@�github-actions</code></a> made their first contribution in <a href="https://redirect.github.com/actions/labeler/pull/513">actions/labeler#513</a></li>
<li><a href="https://github.com/panticmilos"><code>@�panticmilos</code></a> made their first contribution in <a href="https://redirect.github.com/actions/labeler/pull/522">actions/labeler#522</a></li>
<li><a href="https://github.com/nikolai-laevskii"><code>@�nikolai-laevskii</code></a> made their first contribution in <a href="https://redirect.github.com/actions/labeler/pull/571">actions/labeler#571</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/labeler/compare/v4...v4.0.4">https://github.com/actions/labeler/compare/v4...v4.0.4</a></p>
<h2>v4.0.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Make the <code>repo-token</code> input optional. Default is <code>github.token</code> (<a href="https://redirect.github.com/actions/labeler/issues/227">#227</a>)</li>
<li>Bump typescript to 4.9.5 (<a href="https://redirect.github.com/actions/labeler/issues/496">#496</a>)</li>
<li>Bump prettier to 2.8.4 (<a href="https://redirect.github.com/actions/labeler/issues/498">#498</a>)</li>
<li>Bump <code>@�vercel/ncc</code> to 0.36.1 (<a href="https://redirect.github.com/actions/labeler/issues/493">#493</a>)</li>
<li>Bump <code>@�actions/github</code>, minimatch and <code>@�types/minimatch</code> (<a href="https://redirect.github.com/actions/labeler/issues/477">#477</a>)</li>
<li>Update documentation (<a href="https://redirect.github.com/actions/labeler/issues/278">#278</a>, <a href="https://redirect.github.com/actions/labeler/issues/285">#285</a>, <a href="https://redirect.github.com/actions/labeler/issues/476">#476</a> and <a href="https://redirect.github.com/actions/labeler/issues/495">#495</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/actions/labeler/commit/0776a679364a9a16110aac8d0f40f5e11009e327"><code>0776a67</code></a> Merge pull request <a href="https://redirect.github.com/actions/labeler/issues/571">#571</a> from akv-platform/remove-implicit-dependencies</li>
<li><a href="https://github.com/actions/labeler/commit/2713f7303c96cb1e69627957ec16eea0fd7f94a4"><code>2713f73</code></a> Bump <code>@�typescript-eslint/eslint-plugin</code> from 5.59.6 to 5.59.7 (<a href="https://redirect.github.com/actions/labeler/issues/572">#572</a>)</li>
<li><a href="https://github.com/actions/labeler/commit/a4eda65d3dd04bf2609bd957219885eac0efebdf"><code>a4eda65</code></a> Bump <code>@�typescript-eslint/parser</code> from 5.59.6 to 5.59.7 (<a href="https://redirect.github.com/actions/labeler/issues/573">#573</a>)</li>
<li><a href="https://github.com/actions/labeler/commit/5c4deb8a24f8a41657d61c18894d8e700cdee67a"><code>5c4deb8</code></a> Revert &quot;fix: correct reading of sync-labels input. (<a href="https://redirect.github.com/actions/labeler/issues/480">#480</a>)&quot; (<a href="https://redirect.github.com/actions/labeler/issues/564">#564</a>)</li>
<li><a href="https://github.com/actions/labeler/commit/08382d15cbe3356793d4187dcd9792a2d10cb03c"><code>08382d1</code></a> Move eslint-plugin-node to dev dependencies</li>
<li><a href="https://github.com/actions/labeler/commit/61662e8f41cc6781d48b2fd405c5cd6420128af6"><code>61662e8</code></a> Bump eslint from 8.40.0 to 8.41.0 (<a href="https://redirect.github.com/actions/labeler/issues/569">#569</a>)</li>
<li><a href="https://github.com/actions/labeler/commit/d1dd326cccf2f7c059720fe6ad43b76abd786264"><code>d1dd326</code></a> Install eslint-plugin-node</li>
<li><a href="https://github.com/actions/labeler/commit/91076827ed0d4506993bae4f3cf7aacc578c9a3f"><code>9107682</code></a> Update configuration files</li>
<li><a href="https://github.com/actions/labeler/commit/6b107e7a7ee5e054e0bcce60de5181d21e2f00fb"><code>6b107e7</code></a> Bump <code>@�typescript-eslint/parser</code> from 5.59.5 to 5.59.6 (<a href="https://redirect.github.com/actions/labeler/issues/565">#565</a>)</li>
<li><a href="https://github.com/actions/labeler/commit/d93c73a681c099c55b461e5ef853f84b8335eebf"><code>d93c73a</code></a> Bump <code>@�typescript-eslint/eslint-plugin</code> from 5.59.5 to 5.59.6 (<a href="https://redirect.github.com/actions/labeler/issues/566">#566</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/actions/labeler/compare/5c7539237e04b714afd8ad9b4aed733815b9fab4...0776a679364a9a16110aac8d0f40f5e11009e327">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/labeler&package-manager=github_actions&previous-version=4.0.2&new-version=4.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>
Bumps [futureware-tech/simulator-action](https://github.com/futureware-tech/simulator-action) from 1 to 2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/futureware-tech/simulator-action/releases">futureware-tech/simulator-action's releases</a>.</em></p>
<blockquote>
<h2>v2</h2>
<ul>
<li>Update a few packages for security reasons.</li>
<li>Bump NodeJS to 16 (<a href="https://redirect.github.com/futureware-tech/simulator-action/issues/249">#249</a>).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/futureware-tech/simulator-action/blob/main/CHANGELOG.md">futureware-tech/simulator-action's changelog</a>.</em></p>
<blockquote>
<h2>v2</h2>
<ul>
<li>Update a few packages for security reasons.</li>
<li>Bump NodeJS to 16 (<a href="https://redirect.github.com/futureware-tech/simulator-action/issues/249">#249</a>).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/ee05c113b79f056b47f354d7b313555f5491e158"><code>ee05c11</code></a> Merge pull request <a href="https://redirect.github.com/futureware-tech/simulator-action/issues/254">#254</a> from futureware-tech/version-bump</li>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/adda788192c9f89ed40a57337b52258b02fb9c5c"><code>adda788</code></a> File name conventions from newest eslint</li>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/01e3384853c742e2c3e5de7e36d7054f5e67a73a"><code>01e3384</code></a> Disable linter for i18n (as instructed by GitHub)</li>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/00a77eab10a861020199f5dd349fcb596d04ba73"><code>00a77ea</code></a> Fix new typescript findings</li>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/b15d4168e2a82562f92e688ea185233cc10ba5ad"><code>b15d416</code></a> Package v2</li>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/e6322bb68542c03e39d95d68a1bf09a981d7d400"><code>e6322bb</code></a> Update package-lock.json version</li>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/3b0adbccaf68e3c1b66e586d52dda74526f671f2"><code>3b0adbc</code></a> Add NodeJS version for nvm</li>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/e0d70c20855d97beba12b4e3ffd0673070544407"><code>e0d70c2</code></a> Merge pull request <a href="https://redirect.github.com/futureware-tech/simulator-action/issues/229">#229</a> from futureware-tech/dependabot/npm_and_yarn/types/se...</li>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/eaa775885bfeab97e21375c8a081e7ebdaa73003"><code>eaa7758</code></a> Merge pull request <a href="https://redirect.github.com/futureware-tech/simulator-action/issues/248">#248</a> from futureware-tech/dependabot/npm_and_yarn/types/no...</li>
<li><a href="https://github.com/futureware-tech/simulator-action/commit/e8aa581b293a4f298785276b94d5c03eca8a392f"><code>e8aa581</code></a> Merge pull request <a href="https://redirect.github.com/futureware-tech/simulator-action/issues/250">#250</a> from futureware-tech/node16</li>
<li>Additional commits viewable in <a href="https://github.com/futureware-tech/simulator-action/compare/v1...v2">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=futureware-tech/simulator-action&package-manager=github_actions&previous-version=1&new-version=2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>
kevmoo and others added 23 commits November 27, 2023 09:24
See #1052
Prepare to release pkg:http v1.1.2
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/setup-java/releases">actions/setup-java's releases</a>.</em></p>
<blockquote>
<h2>v4.0.0</h2>
<h2>What's Changed</h2>
<p>In the scope of this release, the version of the Node.js runtime was updated to 20. The majority of dependencies were updated to the latest versions. From now on, the code for the setup-java will run on Node.js 20 instead of Node.js 16.</p>
<h2>Breaking changes</h2>
<ul>
<li>Update Node.js runtime to version 20 by <a href="https://github.com/aparnajyothi-y"><code>@�aparnajyothi-y</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/558">actions/setup-java#558</a></li>
</ul>
<h2>Non-breaking changes</h2>
<ul>
<li>Adding support for microsoft openjdk 21.0.0 by <a href="https://github.com/ralfstuckert"><code>@�ralfstuckert</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/546">actions/setup-java#546</a></li>
<li>Update <code>@�actions/cache</code> dependency and documentation by <a href="https://github.com/IvanZosimov"><code>@�IvanZosimov</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/549">actions/setup-java#549</a></li>
<li>Implementation of the cache-dependency-path option to control caching dependency by <a href="https://github.com/itchyny"><code>@�itchyny</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/499">actions/setup-java#499</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/ralfstuckert"><code>@�ralfstuckert</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-java/pull/546">actions/setup-java#546</a></li>
<li><a href="https://github.com/itchyny"><code>@�itchyny</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-java/pull/499">actions/setup-java#499</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/setup-java/compare/v3...v4.0.0">https://github.com/actions/setup-java/compare/v3...v4.0.0</a></p>
<h2>v3.13.0</h2>
<h2>What's changed</h2>
<p>In the scope of this release, support for Dragonwell JDK was added by <a href="https://github.com/Accelerator1996"><code>@�Accelerator1996</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/532">actions/setup-java#532</a></p>
<pre lang="yaml"><code>steps:
 - name: Checkout
   uses: actions/checkout@v3
 - name: Setup-java
   uses: actions/setup-java@v3
   with:
     distribution: 'dragonwell'
     java-version: '17'
</code></pre>
<p>Several inaccuracies were also fixed:</p>
<ul>
<li>Fix XML namespaces wrongly using https by <a href="https://github.com/gnodet"><code>@�gnodet</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/503">actions/setup-java#503</a></li>
<li>Fix typo and remove unintentional(?) word by <a href="https://github.com/CyberFlameGO"><code>@�CyberFlameGO</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/518">actions/setup-java#518</a></li>
<li>Fix usage link within the README.md file by <a href="https://github.com/dassiorleando"><code>@�dassiorleando</code></a> in <a href="https://redirect.github.com/actions/setup-java/pull/525">actions/setup-java#525</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/CyberFlameGO"><code>@�CyberFlameGO</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-java/pull/518">actions/setup-java#518</a></li>
<li><a href="https://github.com/dassiorleando"><code>@�dassiorleando</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-java/pull/525">actions/setup-java#525</a></li>
<li><a href="https://github.com/gnodet"><code>@�gnodet</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-java/pull/503">actions/setup-java#503</a></li>
<li><a href="https://github.com/Accelerator1996"><code>@�Accelerator1996</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-java/pull/532">actions/setup-java#532</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/actions/setup-java/compare/v3...v3.13.0">https://github.com/actions/setup-java/compare/v3...v3.13.0</a></p>
<h2>v3.12.0</h2>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/actions/setup-java/commit/387ac29b308b003ca37ba93a6cab5eb57c8f5f93"><code>387ac29</code></a> Upgrade Node to v20 (<a href="https://redirect.github.com/actions/setup-java/issues/558">#558</a>)</li>
<li><a href="https://github.com/actions/setup-java/commit/9eda6b51cc4f6ee99be3dd5537b85e389e47bda9"><code>9eda6b5</code></a> feat: implement cache-dependency-path option to control caching dependency (#...</li>
<li><a href="https://github.com/actions/setup-java/commit/78078da0cd035d0d177cc2cb696e05d96fba7d11"><code>78078da</code></a> Update <code>@�actions/cache</code> dependency and documentation (<a href="https://redirect.github.com/actions/setup-java/issues/549">#549</a>)</li>
<li><a href="https://github.com/actions/setup-java/commit/5caaba646e214abb5c4c808eb8fe13db519ab757"><code>5caaba6</code></a> add support for microsoft openjdk 21.0.0 (<a href="https://redirect.github.com/actions/setup-java/issues/546">#546</a>)</li>
<li>See full diff in <a href="https://github.com/actions/setup-java/compare/v3...v4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/setup-java&package-manager=github_actions&previous-version=3&new-version=4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>
…1064)

With wasm, the hybrid logic decodes JSON numbers as double
This fix adds in a helper to make sure we get `int` when desired

See #1066
@github-actions github-actions bot added package:cupertino_http Issues related to package:cupertino_http package:cronet_http type-infra A repository infrastructure change or enhancement package:http_client_conformance_tests labels Dec 22, 2023
@medz medz closed this Dec 22, 2023
@medz medz deleted the master branch January 4, 2024 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next-breaking-release Issues that are worth doing but need to wait for a breaking version bump package:cronet_http package:cupertino_http Issues related to package:cupertino_http package:http_client_conformance_tests package:http type-infra A repository infrastructure change or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.