Skip to content

Commit

Permalink
Merge pull request #16 from KamilLelonek/master
Browse files Browse the repository at this point in the history
Added default MIME type when not present. Fixes #15.
  • Loading branch information
porada committed Feb 5, 2015
2 parents 19a4c22 + 0f6eedd commit c58d96c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleman-autoprefixer/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def initialize(app, options = {})
def call(env)
status, headers, response = @app.call(env)

type = headers['Content-Type'].split(';').first
type = headers.fetch('Content-Type', 'application/octet-stream').split(';').first
path = env['PATH_INFO']

prefixed = process(response, type, path)
Expand Down

2 comments on commit c58d96c

@andreimoment
Copy link

Choose a reason for hiding this comment

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

Thank you for this fix!

@porada
Copy link
Contributor Author

@porada porada commented on c58d96c Feb 9, 2015

Choose a reason for hiding this comment

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

This one goes to @KamilLelonek—he fixed it. 🍻

Please sign in to comment.