Skip to content

Commit 0fde0a1

Browse files
authored
Force request timeout to 30 seconds (#22)
1 parent 79e742d commit 0fde0a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/lib/Aplazame/Aplazame/Http/WpClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public function send( Aplazame_Sdk_Http_RequestInterface $request ) {
1212
'headers' => $rawHeaders,
1313
'method' => $request->getMethod(),
1414
'body' => $request->getBody(),
15+
'timeout' => 30,
1516
);
1617

1718
$wpResponse = wp_remote_request( $request->getUri(), $args );

0 commit comments

Comments
 (0)