src/nginx_module/ContentHandler.c in passenger-5.0.24 vs src/nginx_module/ContentHandler.c in passenger-5.0.25
- old
+ new
@@ -740,10 +740,11 @@
* S = SSL
*/
PUSH_STATIC_STR("!~FLAGS: DC");
#if (NGX_HTTP_SSL)
- if (r->http_connection->ssl) {
+ if (r->http_connection != NULL /* happens in sub-requests */
+ && r->http_connection->ssl) {
PUSH_STATIC_STR("S");
}
#endif
PUSH_STATIC_STR("\r\n\r\n");