Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: third_party/WebKit/Source/platform/network/FormDataEncoder.cpp

Issue 1573623002: Tweaked comments related to mime boundary marker generation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/mime_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
diff --git a/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp b/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
index 0b73501150dbf777cc14f8f0ab4decd858ca4b49..1aef3e851f73692366ca35562eb80a45d760b4a0 100644
--- a/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
+++ b/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
@@ -99,15 +99,16 @@ WTF::TextEncoding FormDataEncoder::encodingFromAcceptCharset(const String& accep
return charset;
}
-// TODO(lukasza): Reuse net::GenerateMimeMultipartBoundary instead.
Łukasz Anforowicz 2016/01/08 21:31:12 Hmmm... ideally we would have only 1 piece of code
Ryan Sleevi 2016/01/08 21:34:22 No, we don't want base/ to be the dumping ground f
Vector<char> FormDataEncoder::generateUniqueBoundaryString()
{
Vector<char> boundary;
+ // TODO(rsleevi): crbug.com/575779: Follow the spec or fix the spec.
// The RFC 2046 spec says the alphanumeric characters plus the
// following characters are legal for boundaries: '()+_,-./:=?
// However the following characters, though legal, cause some sites
// to fail: (),./:=+
+ //
// Note that our algorithm makes it twice as much likely for 'A' or 'B'
// to appear in the boundary string, because 0x41 and 0x42 are present in
// the below array twice.
« no previous file with comments | « net/base/mime_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698