mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-20 19:24:32 +00:00
HTTP API: Replace internals with Requests library.
Requests is a library very similar to WP_HTTP, with a high level of unit test coverage, and has a common lineage and development team. It also supports parallel requests. See #33055. git-svn-id: https://develop.svn.wordpress.org/trunk@37428 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -289,10 +289,6 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
|
||||
// Test 303 - POST to GET
|
||||
$res = wp_remote_post( add_query_arg( 'response_code', 303, $url ), array( 'timeout' => 30 ) );
|
||||
$this->assertEquals( 'GET', wp_remote_retrieve_body( $res ) );
|
||||
|
||||
// Test 304 - POST to POST
|
||||
$res = wp_remote_post( add_query_arg( 'response_code', 304, $url ), array( 'timeout' => 30 ) );
|
||||
$this->assertEquals( 'POST', wp_remote_retrieve_body( $res ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user