You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this gem, it's quite useful.
I noticed that when using the put_attachment method (put_attachment(doc, 'nameWithoutExtension', image, content_type: 'image/jpeg')), the Content-type header is always set to text/plain.
I solved this slight problem locally by modifying the payload_from_doc to take into account the existing req[:header]['Content-Type'].
I don't know if it's wanted or not, but it can be problematic when using a name without extension.
The text was updated successfully, but these errors were encountered:
I stumbled across the same problem. Method "payload_from_doc" (in "connection.rb") overwrites the header in line "req[:header]['Content-Type'] = mime_for(req[:uri].path)", for whatever reason.
Hi,
Thanks for this gem, it's quite useful.
I noticed that when using the put_attachment method (
put_attachment(doc, 'nameWithoutExtension', image, content_type: 'image/jpeg')
), the Content-type header is always set totext/plain
.I solved this slight problem locally by modifying the
payload_from_doc
to take into account the existingreq[:header]['Content-Type']
.I don't know if it's wanted or not, but it can be problematic when using a name without extension.
The text was updated successfully, but these errors were encountered: