| 176 | } |
| 177 | |
| 178 | static apr_bucket *make_invalid_resp(conn_rec *c2, int status, |
| 179 | apr_table_t *notes) |
| 180 | { |
| 181 | apr_table_t *nheaders, *nnotes; |
| 182 | |
| 183 | nheaders = apr_table_make(c2->pool, 10); |
| 184 | apr_table_setn(nheaders, "Content-Length", "0"); |
| 185 | nnotes = notes? apr_table_clone(c2->pool, notes) : |
| 186 | apr_table_make(c2->pool, 10); |
| 187 | #if AP_HAS_RESPONSE_BUCKETS |
| 188 | return ap_bucket_response_create(status, NULL, nheaders, nnotes, |
| 189 | c2->pool, c2->bucket_alloc); |
| 190 | #else |
| 191 | return h2_bucket_headers_create(c2->bucket_alloc, |
| 192 | h2_headers_create(status, nheaders, |
| 193 | nnotes, 0, c2->pool)); |
| 194 | #endif |
| 195 | } |
| 196 | |
| 197 | static void ws_handle_resp(conn_rec *c2, h2_conn_ctx_t *conn_ctx, |
| 198 | struct ws_filter_ctx *ws_ctx, apr_bucket *b) |
no test coverage detected