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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/resources/get-windows-1251.cgi

Issue 20625004: XMLHttpRequest should clear the response encoding when it clears responseText. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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 | « LayoutTests/http/tests/xmlhttprequest/resources/get-utf-8.cgi ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/xmlhttprequest/resources/get-windows-1251.cgi
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/get-windows-1251.cgi b/LayoutTests/http/tests/xmlhttprequest/resources/get-windows-1251.cgi
new file mode 100755
index 0000000000000000000000000000000000000000..580f6b50c6079f75923f269ab6128bc40c974313
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/get-windows-1251.cgi
@@ -0,0 +1,6 @@
+#!/usr/bin/perl -w
+use utf8;
+use Encode 'encode';
+
+print "Content-type: text/plain; charset=windows-1251\n\n";
+print encode("windows-1251", "Проверка");
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/resources/get-utf-8.cgi ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698