mirror of
https://github.com/TeamPiped/region-restriction-checker.git
synced 2024-08-14 23:57:10 +00:00
Set content-type header.
This commit is contained in:
parent
e8c10fcc3c
commit
610a9977b7
1 changed files with 1 additions and 0 deletions
|
@ -117,5 +117,6 @@ async fn check(query: web::Query<VideoIdQuery>, redis: web::Data<redis::Client>)
|
||||||
};
|
};
|
||||||
|
|
||||||
HttpResponse::Ok()
|
HttpResponse::Ok()
|
||||||
|
.content_type("application/json")
|
||||||
.body(serde_json::to_string(&restrictions).unwrap())
|
.body(serde_json::to_string(&restrictions).unwrap())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue