Javier Fuentes created ZEPPELIN-4586:
----------------------------------------

             Summary: Add option to avoid sending Jetty version on headers and 
on 300/400 pages 
                 Key: ZEPPELIN-4586
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-4586
             Project: Zeppelin
          Issue Type: Improvement
            Reporter: Javier Fuentes


Adds an optional parameter to avoid sending jetty server version on headers.

From:
{{HTTP/1.1 200 OK}}
{{ Date: Fri, 31 Jan 2020 19:20:23 GMT}}
{{ Access-Control-Allow-Credentials: true}}
{{ Access-Control-Allow-Headers: authorization,Content-Type}}
{{ Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, HEAD, DELETE}}
{{ X-FRAME-OPTIONS: SAMEORIGIN}}
{{ X-XSS-Protection: 1}}
{{ X-Content-Type-Options: nosniff}}
{{ Content-Length: 0}}
{{ Server: Jetty(9.4.18.v20190429)}}

{{<html>}}{{<head>}}{{<meta http-equiv="Content-Type" 
content="text/html;charset=utf-8"/>}}{{<title>Error 404 Not 
Found</title>}}{{</head>}}{{<body><h2>HTTP ERROR 404</h2>}}{{<p>Problem 
accessing /nonexisting. Reason:}}{{<pre>    Not Found</pre></p><hr><a 
href="http://eclipse.org/jetty";>Powered by Jetty:// 
9.4.18.v20190429</a><hr/>}}{{ }}{{</body>}}{{</html>}}

 

To:

{{HTTP/1.1 200 OK}}
{{ Date: Fri, 31 Jan 2020 19:20:23 GMT}}
{{ Access-Control-Allow-Credentials: true}}
{{ Access-Control-Allow-Headers: authorization,Content-Type}}
{{ Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, HEAD, DELETE}}
{{ X-FRAME-OPTIONS: SAMEORIGIN}}
{{ X-XSS-Protection: 1}}
{{ X-Content-Type-Options: nosniff}}
{{ Content-Length: 0}}

 

{{<html>}}{{<head>}}{{<meta http-equiv="Content-Type" 
content="text/html;charset=utf-8"/>}}{{<title>Error 404 Not 
Found</title>}}{{</head>}}{{<body><h2>HTTP ERROR 404</h2>}}{{<p>Problem 
accessing /nonexisting. Reason:}}{{<pre>    Not 
Found</pre></p>}}{{</body>}}{{</html>}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to