Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Make request header blacklist case insensitive #202

Conversation

thewilkybarkid
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License Apache License 2.0

Copy link
Contributor

@Avariya Avariya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like soon we will need separate method for headers preparation.

@csarrazi
Copy link
Owner

Actually, this is a BC break, as it changes the file naming strategy.
This means that you will need to regenerate your mocks once this patch is applied.

@thewilkybarkid
Copy link
Contributor Author

Ok, I've changed it so it tries normalising the request headers first, and falls back to not normalising.

@csarrazi
Copy link
Owner

csarrazi commented Apr 3, 2017

We're nearly there!

Could you add a test to check that both the new and the old naming strategies return the expected paths?

Thanks! 😃

@@ -66,8 +66,9 @@ public function testFetch()
public function testSave()
{
$request = $this->getRequestMock();
$mockStorage = new $this->class($this->tmpDir, [], ['X-Foo']);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test should not be altered.

On the other hand, we should create tests which test specifically the naming strategies.

@csarrazi
Copy link
Owner

I'm closing this PR as the logic has been moved to a third-party library. @thewilkybarkid Want to make a PR against the new project? (https://github.com/csarrazi/guzzle-cache-middleware) :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants