File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
core/src/main/scala/org/apache/spark/ui Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -210,10 +210,16 @@ private[spark] object JettyUtils extends Logging {
210
210
conf : SparkConf ,
211
211
serverName : String = " " ): ServerInfo = {
212
212
213
- val collection = new ContextHandlerCollection
214
- collection.setHandlers(handlers.toArray)
215
213
addFilters(handlers, conf)
216
214
215
+ val collection = new ContextHandlerCollection
216
+ val gzipHandlers = handlers.map { h =>
217
+ val gzipHandler = new GzipHandler
218
+ gzipHandler.setHandler(h)
219
+ gzipHandler
220
+ }
221
+ collection.setHandlers(gzipHandlers.toArray)
222
+
217
223
// Bind to the given port, or throw a java.net.BindException if the port is occupied
218
224
def connect (currentPort : Int ): (Server , Int ) = {
219
225
val server = new Server (new InetSocketAddress (hostName, currentPort))
You can’t perform that action at this time.
0 commit comments