title: Google App Engine is sending SVG with wrong mime-type
body: <p>I'm using Google App Engine with Python 2.7 and I'm trying to use an svg-file as a sprite-sheet. </p>
  
  <p>For some reason this works fine on Win7 and Ubuntu, but not on Vista or Mac (Using the latest Chrome and Firefox in each case). </p>
  
  <p>Here it's sent with mime-type "application/octet-stream" and the browsers prompts to download it, instead of displaying it.</p>
  
  <p>I tried overriding the mime-type in my app.yaml like this:</p>
  
  <pre><code>- url: /img/.*\.svg
    static_dir: public/img
    mime_type: image/svg+xml
  
  - url: /img
    static_dir: public/img
  </code></pre>
  
  <p>But that didn't change anything.</p>
  
  <p>I also tried to route requests for svg-files through their own url like this</p>
  
  <pre><code>- url: /img/svg
    static_dir: public/img
    mime_type: image/svg+xml
  
  - url: /img
    static_dir: public/img
  </code></pre>
  
  <p>But that results in the file being sent with mime-type "img/png", so the browser will at least <em>try</em> to display it, but can't.</p>
  
  <p>Just to make sure, I tried each combination as stated and also with the headers-options:</p>
  
  <pre><code>- url: /img/svg
    static_dir: public/img
    http_headers:
      mime-type: image/svg+xml
  </code></pre>
  
  <p>Without success.</p>
  
  <p>Any help please?</p>
  
  <p>[edit]</p>
  
  <p>After some more testing, it seems like on Ubuntu using the local app-launcher, it sends the svg as <code>text/html</code> and when deployed it uses <code>application/octet-stream</code>, regardless of what I put in the app.yaml.</p>
  
  <p>Does anybody have experience with this? The only way I can solve this is to insert the svg-code into the page directly, which kinda sucks. It's a graphic and I want to treat it that way.</p>
  
  <p>[more edit]</p>
  
  <p>In the end, I put this in the yaml-file and it seems to work:</p>
  
  <pre><code>- url: /img/.*\.svg
    static_dir: public/img
    http_headers:
      content_type: image/svg+xml
  
  - url: /img
    static_dir: public/img
  </code></pre>