Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Karasiq committed Sep 11, 2015
1 parent ebb30c4 commit 3a6dacd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/com/karasiq/proxychain/app/Handler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import com.karasiq.parsers.http.{HttpConnect, HttpMethod, HttpRequest, HttpRespo
import com.karasiq.parsers.socks.SocksClient._
import com.karasiq.parsers.socks.SocksServer._
import com.karasiq.proxy.ProxyException
import com.typesafe.config.ConfigFactory
import org.apache.commons.io.IOUtils

import scala.collection.JavaConversions._
Expand Down Expand Up @@ -127,7 +126,7 @@ private[app] final class Handler(cfg: AppConfig) extends Actor with ActorLogging
}
}

private val droppedHeaders = ConfigFactory.load().getStringList("proxyChain.http.dropHeaders").toSet
private val droppedHeaders = AppConfig.externalConfig().getStringList("proxyChain.http.dropHeaders").toSet
private def cleanHeaders(headers: Seq[HttpHeader]): Seq[HttpHeader] = {
val ch = headers.filterNot(h droppedHeaders.contains(h.name))
log.debug("Headers dropped: {}", headers.diff(ch).mkString(", "))
Expand Down

0 comments on commit 3a6dacd

Please sign in to comment.