Skip to content

Commit

Permalink
prepare 4.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 8, 2016
1 parent b9e2d3b commit 5b20cd1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,9 @@

All notable changes to `laravel-medialibrary` will be documented in this file

## 4.10.0 - 2016-12-09
- add `addCustomHeaders` function

## 4.9.5 - 2016-10-25
- improve returned values for `getUrl` methods

Expand Down
4 changes: 2 additions & 2 deletions src/FileAdder/FileAdder.php
Expand Up @@ -235,13 +235,13 @@ public function withAttributes(array $properties)
}

/**
* Add additional custom remote headers.
* Add the given additional headers when copying the file to a remote filesystem.
*
* @param array $customRemoteHeaders
*
* @return $this
*/
public function addCustomRemoteHeaders(array $customRemoteHeaders)
public function addCustomHeaders(array $customRemoteHeaders)
{
$this->filesystem->addCustomRemoteHeaders($customRemoteHeaders);

Expand Down
2 changes: 1 addition & 1 deletion tests/FileSystem/FileSystemTest.php
Expand Up @@ -53,7 +53,7 @@ public function it_can_add_custom_headers_for_file_that_will_be_copied_to_an_ext
}

/** @test */
public function it_can_override_config_custom_headers_for_file_that_will_be_copied_to_an_external_filesytem()
public function it_can_use_custom_headers_when_copying_the_media_to_an_external_filesystem()
{
$this->filesystem->addCustomRemoteHeaders([
'CacheControl' => 'max-age=302400',
Expand Down

0 comments on commit 5b20cd1

Please sign in to comment.