Escape non-ASCII response headers.
Response headers that are not valid UTF-8 can't be stored in a base::StringValue, which is always a UTF-8 string, so escape any non-ASCII values to be safe. This prevents a DCHECK when dev tools' network request inspector is open and we receive these headers. BUG=299880 Review URL: https://codereview.chromium.org/453483002 Cr-Commit-Position: refs/heads/master@{#288357} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288357 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment