MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    为什么我用HTTP接口返回不了Session,状态415

    BUG反馈
    2
    2
    407
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Miempire last edited by

      为啥我用 [post]/verify接口 返回的是空文本
      状态码为415
      而且返回头是

      HTTP/1.1 415 Unsupported Media Type
      Date: Wed, 07 Feb 2024 06:49:40 GMT
      Server: Ktor/2.1.1
      Content-Length: 0

      提交的内容为
      {
      "verifyKey": "【我的key,此处略】"
      }

      1 Reply Last reply Reply Quote 0
      • MrXiaoM
        MrXiaoM 童心未泯 last edited by MrXiaoM

        415
        会不会是请求头的 Content-Type 没设置成 application/json 之类的

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact