forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move http_util ParseContentType to mime_util and generalize step 2 of 2
Step 1: Move ParseContentType to mime_util. Step 2: Generalize API for any mime or parameter names. End state will be that this function can still be used for HttpUtil::ParseContentType() but can also called by exo to parse a mime string such as: application/octet-string; name="image.jpg" There has been a minor change to logic for HttpUtil::ParseContentType(). Previously it was setting |boundary| even when it would later reject mime type such as "*/*". I believe this was unintentional (a bug?). The new code returns without setting boundary. Bug: 1202034 Change-Id: Ia5d90e369b87ed0d12f23c0f86bfe7c20dbacce6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2895987 Reviewed-by: Matt Menke <mmenke@chromium.org> Commit-Queue: Joel Hockey <joelhockey@chromium.org> Cr-Commit-Position: refs/heads/master@{#883246}
- Loading branch information
Joel Hockey
authored and
Chromium LUCI CQ
committed
May 15, 2021
1 parent
e89bebf
commit 1864da8
Showing
4 changed files
with
168 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters