Merge pull request #6185 from maxrice/webhooks-fix

Fix webhook delivery request header format
This commit is contained in:
Mike Jolley 2014-09-08 00:03:12 +01:00
commit 73f481291f
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