title: Why I get html/text content type instead of json?
body: <p>When I upload image into Google Cloud Storage I got this </p>
  
  <pre><code>    HTTP/1.1 200 OK
  X-GUploader-UploadID    AEnB2UrQyfCePM_5kYDFy1sJchgXCTkmRH8sU4S8NrWa-KzVoovFtD5iz8CIAUjegqBfBTK8ACiid0XazBRKqpZRvmUE03JNQg
  X-AppEngine-Estimated-CPM-US-Dollars    $0.000000
  X-AppEngine-Resource-Usage  ms=130 cpu_ms=38
  Date    Tue, 05 Apr 2016 14:01:11 GMT
  Pragma  no-cache
  Expires Fri, 01 Jan 1990 00:00:00 GMT
  Cache-Control   no-cache, must-revalidate
  Content-Length  0
  Server  UploadServer
  Content-Type    text/html; charset=UTF-8
  </code></pre>
  
  <p>Instead of this</p>
  
  <pre><code>HTTP/1.1 200 OK
  X-GUploader-UploadID    AEnB2UqEWk0UEztkHlBDHW5x49RYWkkIfPoHCZ_2g0YpZgvXke7blE7VM8FCJOjoAng6x5kySCLcsoccZVNyS9PdG6UU1F9Q1A
  Content-Type    application/json
  Content-Encoding    gzip
  X-AppEngine-Estimated-CPM-US-Dollars    $0.000041
  X-AppEngine-Resource-Usage  ms=1256 cpu_ms=359
  Vary    Accept-Encoding
  Date    Tue, 05 Apr 2016 13:44:20 GMT
  Pragma  no-cache
  Expires Fri, 01 Jan 1990 00:00:00 GMT
  Cache-Control   no-cache, must-revalidate
  Content-Length  307
  Server  UploadServer
  </code></pre>
  
  <p>In my android app, I added header Application/json, and I try to send image as multipart, so the second content type is image/png</p>
  
  <p>Here code from android app:</p>
  
  <pre><code>   @Override
          protected Void doInBackground(File... params) {
  
  
              File file = params[0];
  
              HttpClient httpclient = new DefaultHttpClient();
              HttpPost httppost = new HttpPost(url);
              httppost.setHeader("X-Requested-With","XMLHttpRequest");
              httppost.setHeader("Accept","application/json");
  
              FileBody filebody = new FileBody(file, ContentType.create("image/jpeg"), file.getName());
  
              MultipartEntityBuilder multipartEntity = MultipartEntityBuilder.create();
              multipartEntity.setMode(HttpMultipartMode.BROWSER_COMPATIBLE);
              multipartEntity.addPart("file", filebody);
              httppost.setEntity(multipartEntity.build());
              System.out.println( "executing request " + httppost.getRequestLine( ) );
              try {
                  HttpResponse response = httpclient.execute( httppost );
                  Log.i("response", response.getStatusLine().toString());
              } catch (ClientProtocolException e) {
                  e.printStackTrace();
              } catch (IOException e) {
                  e.printStackTrace();
              }
  
              httpclient.getConnectionManager( ).shutdown( );
  
              return null;
          }
  </code></pre>
  
  <p>Why I get html/text content type instead of json? The server response is 200, but I didn't get any JSON. Please help me. thx</p>
  
  <p>Response:</p>
  
  <pre><code>   HTTP/1.1 200 OK
  X-GUploader-UploadID: AEnB2UqF16tZOCnavA58S1qxTXXopXz5ESh3YIU3ksEv9UsQ6Ro4Oyw03i1CVF7M7GpsLi8_p9ua-agn9upJND_mrXCTGMO-nA
  X-AppEngine-Estimated-CPM-US-Dollars: $0.000000
  X-AppEngine-Resource-Usage: ms=1164 cpu_ms=28
  Date: Tue, 05 Apr 2016 14:29:54 GMT
  Pragma: no-cache
  Expires: Fri, 01 Jan 1990 00:00:00 GMT
  Cache-Control: no-cache, must-revalidate
  Content-Length: 0
  Server: UploadServer
  Content-Type: text/html; charset=UTF-8
  </code></pre>