Roycom
V2EX  ›  问与答

ios app 图片请求,返回格式变成了 Content-Type:"text/html;charset=utf-8"

  •  
  •   Roycom · Oct 11, 2016 · 4443 views
    This topic created in 3513 days ago, the information mentioned may be changed or developed.

    参考: http://bbs.csdn.net/topics/391954954

    安卓正常,ios 只要 content_type 不是图片类型的就不正常,而且 Content-Type 是随机性的,只要是 text/html 就不正常,客户后台不知道怎么改,硬要我这边判断处理,我纳闷了,一个 http://www.xx.com.com/xx.jpg 怎么判断,有哪位 ios 开发碰到过这个问题

    4 replies    2016-10-12 16:37:48 +08:00
    Roycom
        1
    Roycom  
    OP
       Oct 11, 2016
    有碰到的没
    lslqtz
        2
    lslqtz  
       Oct 11, 2016
    你直接反驳回去,返回头都不对还改个毛,让他们改成 image/jpeg
    Roycom
        3
    Roycom  
    OP
       Oct 12, 2016
    @lslqtz 反驳多次了,他们不会改,要我这边判断处理,我实在想不出我们公司的 ios 怎么根据一个图片 http://www.xx.com.com/xx.jpg 去判断处理,反正只要换成第三方的图片就全都正常,就他们服务器的图片有问题,出问题的图片抓包看 Content-Type 就是不对的
    lslqtz
        4
    lslqtz  
       Oct 12, 2016
    @Roycom 你和他们撕逼,让老大做决定嘛。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3758 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 10:32 · PVG 18:32 · LAX 03:32 · JFK 06:32
    ♥ Do have faith in what you're doing.