Set content-type header.

This commit is contained in:
Kavin 2022-11-23 10:26:17 +00:00
parent e8c10fcc3c
commit 610a9977b7
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 1 additions and 0 deletions

View File

@ -117,5 +117,6 @@ async fn check(query: web::Query<VideoIdQuery>, redis: web::Data<redis::Client>)
};
HttpResponse::Ok()
.content_type("application/json")
.body(serde_json::to_string(&restrictions).unwrap())
}