<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xibbar</author_name>
  <author_url>https://blog.hatena.ne.jp/xibbar/</author_url>
  <blog_title>福島餃子Ruby親方</blog_title>
  <blog_url>https://xibbar.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>Ruby</anon>
  </categories>
  <description>applicationコントローラの中で、set_charsetフィルタを 定義している人は上書きされています。 名前は違っても、同じようなことをしている人は多いかと思います。 def set_charset headers['content-type']=&quot;text/html;charset-utf-8&quot; unless request.xhr? end こんな感じのフィルタを定義しているかと思います。 これはAJAXではない場合はcontent-typeをtext/htmlにセットするという 内容です。そこで規定（社内のみ）をつくって、downloadから始まるアクションは content …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxibbar.hatenablog.com%2Fentry%2F20070308%2F1173336356&quot; title=&quot;send_fileとかでファイルをダウンロードさせるとcontent typeが変だ - 福島餃子Ruby親方&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-03-08 15:45:56</published>
  <title>send_fileとかでファイルをダウンロードさせるとcontent typeが変だ</title>
  <type>rich</type>
  <url>https://xibbar.hatenablog.com/entry/20070308/1173336356</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
