Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HttpPush.php to handle mix.version() #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AJMaxwell
Copy link

When using mix.version(), getTypeByExtension() does not take into account the query string on the url and improperly marks all versioned assets as image. To fix, split $resourcePath by ? to give us a clean, non-versioned asset url, which we can then split by . to get the correct file extension.

When using `mix.version()`, `getTypeByExtension()` does not take into account the query string on the url and improperly marks all versioned assets as `image`. To fix, split `$resourcePath` by `?` to give us a clean, non-versioned asset url, which we can then split by `.` to get the correct file extension.
@AJMaxwell
Copy link
Author

The TravisCI phpunit tests fail due to Orchestra\Testbench in PHP 7.2 and 7.3. Otherwise, everything works normally in Laravel.

@it-can it-can mentioned this pull request Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant