hotsh / ostatus

Ruby implementation of the OStatus data specification.
35 stars 5 forks source link

Fixing ArgumentError: comparison of Hash with Hash failed #8

Closed carols10cents closed 12 years ago

carols10cents commented 12 years ago

When links contained mime types not in MIME_ORDER, index() was returning nil and the comparison failed. This change makes the comparison use -1 instead of nil.

This results in an exception that rstat.us is seeing -- https://github.com/hotsh/rstat.us/issues/556