File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ protected function cspClean( $req ) {
218218
219219 protected function errorWithScript ( $ req ) {
220220 header ( 'HTTP/1.0 404 Not Found ' );
221- if ( isset ( $ req ->query ['scriptReply ' ] ) ) {
221+ if ( isset ( $ req ->query ['withScriptContentType ' ] ) ) {
222222 header ( 'Content-Type: application/javascript ' );
223223 }
224224 if ( isset ( $ req ->query ['callback ' ] ) ) {
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ var mocks = {
228228 resp . end ( ) ;
229229 } ,
230230 errorWithScript : function ( req , resp ) {
231- if ( req . query . scriptReply ) {
231+ if ( req . query . withScriptContentType ) {
232232 resp . writeHead ( 404 , { "Content-Type" : "application/javascript" } ) ;
233233 } else {
234234 resp . writeHead ( 404 ) ;
Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ QUnit.module( "ajax", {
853853 request (
854854 "script reply" ,
855855 {
856- url : url ( "mock.php?action=errorWithScript&scriptReply " )
856+ url : url ( "mock.php?action=errorWithScript&withScriptContentType " )
857857 }
858858 ) ,
859859 request (
@@ -866,7 +866,7 @@ QUnit.module( "ajax", {
866866 "script reply with dataType" ,
867867 {
868868 dataType : "script" ,
869- url : url ( "mock.php?action=errorWithScript&scriptReply " )
869+ url : url ( "mock.php?action=errorWithScript&withScriptContentType " )
870870 }
871871 ) ,
872872 request (
@@ -880,7 +880,7 @@ QUnit.module( "ajax", {
880880 "script reply with converter" ,
881881 {
882882 converters : failConverters ,
883- url : url ( "mock.php?action=errorWithScript&scriptReply " )
883+ url : url ( "mock.php?action=errorWithScript&withScriptContentType " )
884884 }
885885 ) ,
886886 request (
@@ -895,7 +895,7 @@ QUnit.module( "ajax", {
895895 {
896896 converters : failConverters ,
897897 dataType : "script" ,
898- url : url ( "mock.php?action=errorWithScript&scriptReply " )
898+ url : url ( "mock.php?action=errorWithScript&withScriptContentType " )
899899 }
900900 ) ,
901901 request (
You can’t perform that action at this time.
0 commit comments