conn_rec *backconn = conn->connection;
int client_error = 0;
char *buf;
- apr_size_t blen;
apr_bucket_brigade *header_brigade;
apr_bucket *e;
char *old_cl_val = NULL;
if (rv != OK) {
return rv;
}
- buf = apr_pstrcat(p, "Upgrade: ", "WebSocket", CRLF, NULL);
- ap_xlate_proto_to_ascii(buf, strlen(buf));
- e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc);
- APR_BRIGADE_INSERT_TAIL(header_brigade, e);
-
- buf = apr_pstrcat(p, "Connection: ", "Upgrade", CRLF, NULL);
- ap_xlate_proto_to_ascii(buf, strlen(buf));
- e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc);
- APR_BRIGADE_INSERT_TAIL(header_brigade, e);
- buf = CRLF;
- blen = strlen(buf);
+ buf = apr_pstrcat(p, "Upgrade: WebSocket", CRLF, "Connection: Upgrade", CRLF, CRLF, NULL);
ap_xlate_proto_to_ascii(buf, strlen(buf));
e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(header_brigade, e);