Fix webhook delivery request header format

This commit is contained in:
Max Rice 2014-09-07 16:10:30 -04:00
parent 7a3ea7dc4e
commit 7aa031c56a
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ class WC_Webhook {
// save request data
add_comment_meta( $delivery_id, '_request_method', $request['method'] );
add_comment_meta( $delivery_id, '_request_headers', array_merge( (array) $request['user-agent'], $request['headers'] ) );
add_comment_meta( $delivery_id, '_request_headers', array_merge( array( 'User-Agent' => $request['user-agent'] ), $request['headers'] ) );
add_comment_meta( $delivery_id, '_request_body', $request['body'] );
// parse response