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

Commit

Permalink
added domainfix for facebook
Browse files Browse the repository at this point in the history
  • Loading branch information
globalworming committed Nov 21, 2014
1 parent c154ffc commit b7c4658
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ public void modifyHeaders(boolean isKeepAlive) {
removeHeader("Transfer-Encoding");
removeHeader("Transfer-encoding");
removeHeader("Content-Security-Policy");
removeHeader("X-Frame-Options");
removeHeader("X-Content-Type-Options");
removeHeader("X-XSS-Protection");
setContentLength(getModifiedContentLength());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ private void copyUserDataConfig() throws IOException {
resources.add("jira.properties");
resources.add("log.properties");
resources.add("userdata.properties");
resources.add("domainfix.txt");
File destDir = new File(Utils.concatPaths(target, USER_CONFIG_ROOT));
copyResources(resources, destDir);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.facebook.com facebook.com
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package net.sf.sahi.workspace;

import com.google.common.io.Files;
import net.sf.sahi.util.Utils;
import org.junit.Test;

import java.io.File;
Expand Down Expand Up @@ -35,6 +34,7 @@ public void testBuild() throws Exception {
assertTrue(new File(workingDirectory, "config/userdata.properties").exists());
assertTrue(new File(workingDirectory, "config/browser_types.xml").exists());
assertTrue(new File(workingDirectory, "phantomscript/phantom.js").exists());
assertTrue(new File(workingDirectory, "config/domainfix.txt").exists());
}

@Test
Expand Down

0 comments on commit b7c4658

Please sign in to comment.