Skip to content

Commit

Permalink
review comment changes for checking cspHeader empty
Browse files Browse the repository at this point in the history
  • Loading branch information
alokhyland committed Dec 17, 2024
1 parent e7b6b2b commit f75190e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ limitations under the License.
String cspHeader = resp.getHeader("Content-Security-Policy");
String newCspHeader = "";
boolean isExistingCspHeaderEmpty = false;
if(cspHeader != null || cspHeader.trim().isEmpty()) {
if(cspHeader == null || cspHeader.trim().isEmpty()) {
isExistingCspHeaderEmpty = true;
cspHeader = "";
}
Expand Down

0 comments on commit f75190e

Please sign in to comment.