瀏覽代碼

Set content type for commit list

Mark Rousskov 5 年之前
父節點
當前提交
b249689d56
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main.rs

+ 1 - 0
src/main.rs

@@ -32,6 +32,7 @@ async fn serve_req(req: Request<Body>, ctx: Arc<Context>) -> Result<Response<Bod
         };
         return Ok(Response::builder()
             .status(StatusCode::OK)
+            .header("Content-Type", "application/json")
             .body(Body::from(serde_json::to_string(&res).unwrap()))
             .unwrap());
     }