Skip to content

Commit

Permalink
Remove extra stream_* function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Mar 13, 2024
1 parent 14d8d75 commit 144c19f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions http_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ function start_download( string $url, $onProgress ) {
Connection: close
REQUEST;
$request = str_replace( "\n", "\r\n", $request ) . "\r\n\r\n";
stream_set_write_buffer( $stream, 0 );
stream_set_read_buffer( $stream, 0 );
blocking_write_to_stream( $stream, $request );

$headers_raw = blocking_read_headers($stream);
Expand Down

0 comments on commit 144c19f

Please sign in to comment.