Merge pull request #6185 from maxrice/webhooks-fix
Fix webhook delivery request header format
This commit is contained in:
commit
73f481291f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue