if (respb) {
ap_bucket_response *resp = respb->data;
- if (resp->status >= 200 || resp->status == 101) {
+ if (resp->status >= 200 || resp->status == HTTP_SWITCHING_PROTOCOLS) {
/* Someone is passing the final response, remember it
* so we no longer generate one. */
ctx->final_status = resp->status;
}
ap_remove_output_filter(f);
}
- else if (ctx->final_status == 101) {
+ else if (ctx->final_status == HTTP_SWITCHING_PROTOCOLS) {
/* switching protocol, whatever comes next is not HTTP/1.x */
ap_remove_output_filter(f);
}
APR_BRIGADE_CONCAT(b, ctx->tmpbb);
- if (resp->status == 101) {
+ if (resp->status == HTTP_SWITCHING_PROTOCOLS) {
/* switched to another protocol, get out of the way */
AP_DEBUG_ASSERT(!r->chunked);
ap_remove_output_filter(f);