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

View file

@ -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())
} }