Skip to content

Commit 96504f4

Browse files
fopen request should be a get
1 parent 83757c1 commit 96504f4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/class-tiny-compress-fopen.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,7 @@ protected function convert( $input ) {
101101
);
102102
}
103103

104-
$body = array(
105-
'convert' => array(
106-
'type' => Tiny_Config::CONVERSION_FORMAT_OPTIONS,
107-
),
108-
);
109-
110-
$output_params = $this->request_options( 'POST', json_encode( $body ), array( 'Content-Type: application/json' ) );
104+
$output_params = $this->request_options( 'GET', null, array( 'Content-Type: application/json' ) );
111105

112106
list($output, $headers, $status_code) = $this->request( $output_params, $output_url );
113107
if ( is_string( $output ) && 0 == strlen( $output ) ) {

0 commit comments

Comments
 (0)