Skip to content

Commit 2a56257

Browse files
committed
MC-42008: Problem with customer API route
1 parent c5799ca commit 2a56257

File tree

1 file changed

+0
-17
lines changed
  • dev/tests/api-functional/framework/Magento/TestFramework/TestCase/HttpClient

1 file changed

+0
-17
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/HttpClient/CurlClient.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,6 @@
1111
class CurlClient
1212
{
1313
const EMPTY_REQUEST_BODY = 'Empty body';
14-
const TMP_COOKIE_FILE = TESTS_TEMP_DIR . '/cookie.txt';
15-
16-
public function __destruct()
17-
{
18-
if (file_exists(self::TMP_COOKIE_FILE)) {
19-
unlink(self::TMP_COOKIE_FILE);
20-
}
21-
}
22-
23-
public function __construct()
24-
{
25-
if (!file_exists(TESTS_TEMP_DIR)) {
26-
mkdir(TESTS_TEMP_DIR);
27-
}
28-
}
2914

3015
/**
3116
* Perform HTTP GET request
@@ -201,8 +186,6 @@ private function getCurlOptions($customCurlOpts = [], $headers = [])
201186
CURLOPT_MAXREDIRS => 10, // but don't redirect more than 10 times
202187
CURLOPT_HTTPHEADER => [],
203188
CURLOPT_HEADER => 1,
204-
CURLOPT_COOKIEJAR => self::TMP_COOKIE_FILE,
205-
CURLOPT_COOKIEFILE => self::TMP_COOKIE_FILE
206189
];
207190

208191
// merge headers

0 commit comments

Comments
 (0)