Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
ignore content-security-policy header and some automatic import optim…
Browse files Browse the repository at this point in the history
…ization
  • Loading branch information
globalworming committed Oct 30, 2014
1 parent 219d71f commit c154ffc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions sahi-core/src/main/java/net/sf/sahi/response/HttpResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
*/
package net.sf.sahi.response;

import net.sf.sahi.StreamHandler;
import net.sf.sahi.config.Configuration;
import net.sf.sahi.util.TrafficLogger;
import net.sf.sahi.util.Utils;
import org.apache.log4j.Logger;

import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.InputStream;
Expand All @@ -26,12 +32,6 @@
import java.util.List;
import java.util.Map;

import net.sf.sahi.StreamHandler;
import net.sf.sahi.config.Configuration;
import net.sf.sahi.util.TrafficLogger;
import net.sf.sahi.util.Utils;
import org.apache.log4j.Logger;

/**
* User: nraman
* Date: May 13, 2005
Expand Down Expand Up @@ -123,6 +123,7 @@ public void modifyHeaders(boolean isKeepAlive) {
// The Transfer-Encoding should never be chunked, since we are sending it sequentially
removeHeader("Transfer-Encoding");
removeHeader("Transfer-encoding");
removeHeader("Content-Security-Policy");
setContentLength(getModifiedContentLength());
}

Expand Down

0 comments on commit c154ffc

Please sign in to comment.