Skip to content

Commit

Permalink
remove charset=UTF-8 (PR #3946)
Browse files Browse the repository at this point in the history
* remove charset=UTF-8
* remove charset=UTF-8 from delete
  • Loading branch information
mostafa-hisham committed May 25, 2021
1 parent fd29255 commit b30ddba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/wpr-cpcss.js
Expand Up @@ -85,7 +85,7 @@ const checkCPCSSGeneration = ( timeout = null, is_mobile = false ) => {
};

xhttp.open( 'POST', rocket_cpcss.rest_url, true );
xhttp.setRequestHeader( 'Content-Type', 'application/json;charset=UTF-8' );
xhttp.setRequestHeader( 'Content-Type', 'application/json' );
xhttp.setRequestHeader( 'X-WP-Nonce', rocket_cpcss.rest_nonce );
xhttp.send( JSON.stringify( { timeout: timeout, is_mobile: is_mobile } ) );
}
Expand Down Expand Up @@ -125,7 +125,7 @@ const deleteCPCSS = () => {
};

xhttp.open( 'DELETE', rocket_cpcss.rest_url, true );
xhttp.setRequestHeader( 'Content-Type', 'application/json;charset=UTF-8' );
xhttp.setRequestHeader( 'Content-Type', 'application/json' );
xhttp.setRequestHeader( 'X-WP-Nonce', rocket_cpcss.rest_nonce );
xhttp.send();
}
Expand Down

0 comments on commit b30ddba

Please sign in to comment.