|
@@ -3421,6 +3421,7 @@ send_additional_header(struct mg_connection *conn)
|
|
|
{
|
|
|
int i = 0;
|
|
|
|
|
|
+#if !defined(NO_SSL)
|
|
|
if (conn->ctx->config[STRICT_HTTPS_MAX_AGE]) {
|
|
|
int max_age = atoi(conn->ctx->config[STRICT_HTTPS_MAX_AGE]);
|
|
|
if (max_age >= 0) {
|
|
@@ -3429,6 +3430,9 @@ send_additional_header(struct mg_connection *conn)
|
|
|
(unsigned)max_age);
|
|
|
}
|
|
|
}
|
|
|
+#else
|
|
|
+ (void)conn; /* unused */
|
|
|
+#endif
|
|
|
|
|
|
return i;
|
|
|
}
|