- FOREACH_HASH_KEYLENVAL(pos, &message->hdrs, key, len, idx, val) {
- if (key) {
- http_send_header_zval_ex(key, len-1, val, 1);
- key = NULL;
+ FOREACH_HASH_KEYVAL(pos, &message->hdrs, key, val) {
+ if (key.type == HASH_KEY_IS_STRING) {
+ http_send_header_zval_ex(key.str, key.len-1, val, 1);