backwards-compatibility with 2.4.x builds for that module.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1935039 13f79535-47bb-0310-9956-
ffa450edef68
}
old_status = r->status;
old_line = r->status_line;
+#ifdef HTTP_EARLY_HINTS
r->status = HTTP_EARLY_HINTS;
r->status_line = ap_get_status_line(r->status);
+#else
+ r->status = 103;
+ r->status_line = "103 Early Hints";
+#endif
ap_send_interim_response(r, 1);
r->status = old_status;
r->status_line = old_line;
forward = 1;
}
break;
+#ifndef HTTP_EARLY_HINTS
+ case 103:
+ /* workaround until we get this into http protocol base
+ * parts. without this, unknown codes are converted to
+ * 500... */
+ r->status_line = "103 Early Hints";
+ break;
+#endif
default:
r->status_line = ap_get_status_line(r->status);
break;
}
h2_session_set_prio(stream->session, stream, stream->pref_priority);
+#ifdef HTTP_EARLY_HINTS
if (resp->status == HTTP_EARLY_HINTS
+#else
+ if (resp->status == 103
+#endif
&& !h2_config_sgeti(stream->session->s, H2_CONF_EARLY_HINTS)) {
/* suppress sending this to the client, it might have triggered
* pushes and served its purpose nevertheless */