Here's what I get when I call magic.from_buffer
:
>>> import urllib2
>>> data = urllib2.urlopen('http://www.in.gov/judiciary/opinions/previous/wpd/05040501.bed.doc').read()
>>> len(data)
29696
>>> from lib import magic
>>> magic.from_buffer(data, mime=True)
At this point, I should be provided with application/msword
, but instead I get nothing from the last call. What am I missing?
This works on my dev machine, but fails on my server. I'm fairly baffled.