+ if ('"' == data[n]) {
+ /* Write n bytes of app data */
+ buf = apr_bucket_alloc(n, c->bucket_alloc);
+ bkt_out = apr_bucket_heap_create(buf, n, apr_bucket_free,
+ c->bucket_alloc);
+ APR_BRIGADE_INSERT_TAIL(brig_out, bkt_out);
+
+ /* Write the escaped quote character */
+ buf = apr_bucket_alloc(3, c->bucket_alloc);
+ bkt_out = apr_bucket_heap_create("\\\"", 2, NULL, c->bucket_alloc);
+ APR_BRIGADE_INSERT_TAIL(brig_out, bkt_out);
+
+ /* Process remaining data */
+ buf = &buf[n];
+ len = len - n;
+ n = 0;
+ }