SHARE
TWEET

Untitled

a guest Apr 4th, 2015 204 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/ext/common/agents/HelperAgent/RequestHandler/ForwardResponse.cpp b/ext/common/agents/HelperAgent/RequestHandler/ForwardResponse.cpp
  2. --- a/ext/common/agents/HelperAgent/RequestHandler/ForwardResponse.cpp  2015-03-31 11:27:38.000000000 +0200
  3. +++ b/ext/common/agents/HelperAgent/RequestHandler/ForwardResponse.cpp  2015-04-05 03:33:23.629774282 +0200
  4. @@ -714,19 +714,7 @@
  5.                 PUSH_STATIC_BUFFER("\r\n");
  6.         }
  7.  
  8. -       if (showVersionInHeader) {
  9. -               #ifdef PASSENGER_IS_ENTERPRISE
  10. -                       PUSH_STATIC_BUFFER("X-Powered-By: " PROGRAM_NAME " Enterprise " PASSENGER_VERSION "\r\n\r\n");
  11. -               #else
  12. -                       PUSH_STATIC_BUFFER("X-Powered-By: " PROGRAM_NAME " " PASSENGER_VERSION "\r\n\r\n");
  13. -               #endif
  14. -       } else {
  15. -               #ifdef PASSENGER_IS_ENTERPRISE
  16. -                       PUSH_STATIC_BUFFER("X-Powered-By: " PROGRAM_NAME " Enterprise\r\n\r\n");
  17. -               #else
  18. -                       PUSH_STATIC_BUFFER("X-Powered-By: " PROGRAM_NAME "\r\n\r\n");
  19. -               #endif
  20. -       }
  21. +       PUSH_STATIC_BUFFER("\r\n");
  22.  
  23.         nbuffers = i;
  24.         return true;
  25. diff --git a/ext/common/agents/HelperAgent/RequestHandler/TurboCaching.h b/ext/common/agents/HelperAgent/RequestHandler/TurboCaching.h
  26. --- a/ext/common/agents/HelperAgent/RequestHandler/TurboCaching.h       2015-03-31 11:27:38.000000000 +0200
  27. +++ b/ext/common/agents/HelperAgent/RequestHandler/TurboCaching.h       2015-04-05 03:08:30.566884319 +0200
  28. @@ -155,12 +155,6 @@
  29.                 }
  30.                 PUSH_STATIC_STRING("\r\n");
  31.  
  32. -               if (prep.showVersionInHeader) {
  33. -                       PUSH_STATIC_STRING("X-Powered-By: " PROGRAM_NAME " " PASSENGER_VERSION "\r\n");
  34. -               } else {
  35. -                       PUSH_STATIC_STRING("X-Powered-By: " PROGRAM_NAME "\r\n");
  36. -               }
  37. -
  38.                 if (server->canKeepAlive(req)) {
  39.                         if (httpVersion < 1010) {
  40.                                 // HTTP < 1.1 defaults to "Connection: close", but we want keep-alive
  41. diff --git a/ext/nginx/ContentHandler.c b/ext/nginx/ContentHandler.c
  42. --- a/ext/nginx/ContentHandler.c        2015-03-31 11:27:38.000000000 +0200
  43. +++ b/ext/nginx/ContentHandler.c        2015-04-05 03:08:30.566884319 +0200
  44. @@ -1177,19 +1177,7 @@
  45.  
  46.                  h->key.len = sizeof("Server") - 1;
  47.                  h->key.data = (u_char *) "Server";
  48. -                if (!passenger_main_conf.show_version_in_header) {
  49. -                    if (clcf->server_tokens) {
  50. -                        h->value.data = (u_char *) (NGINX_VER " + " PROGRAM_NAME);
  51. -                    } else {
  52. -                        h->value.data = (u_char *) ("nginx + " PROGRAM_NAME);
  53. -                    }
  54. -                } else {
  55. -                    if (clcf->server_tokens) {
  56. -                        h->value.data = (u_char *) (NGINX_VER " + " PROGRAM_NAME " " PASSENGER_VERSION);
  57. -                    } else {
  58. -                        h->value.data = (u_char *) ("nginx + " PROGRAM_NAME " " PASSENGER_VERSION);
  59. -                    }
  60. -                }
  61. +                h->value.data = (u_char *) ("nginx");
  62.                  h->value.len = ngx_strlen(h->value.data);
  63.                  h->lowcase_key = (u_char *) "server";
  64.              }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top