Skip to content

Commit 125a054

Browse files
committed
Disable serving static resources with gzip
1 parent 90feb8d commit 125a054

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/ui/JettyUtils.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ private[spark] object JettyUtils extends Logging {
119119
/** Create a handler for serving files from a static directory */
120120
def createStaticHandler(resourceBase: String, path: String): ServletContextHandler = {
121121
val contextHandler = new ServletContextHandler
122+
contextHandler.setInitParameter("org.eclipse.jetty.servlet.Default.gzip", "false")
122123
val staticHandler = new DefaultServlet
123124
val holder = new ServletHolder(staticHandler)
124125
Option(getClass.getClassLoader.getResource(resourceBase)) match {

0 commit comments

Comments
 (0)