Skip to content

Commit

Permalink
added json header to detector client response (#279)
Browse files Browse the repository at this point in the history
Signed-off-by: resoluteCoder <resolutecoder@gmail.com>
  • Loading branch information
resoluteCoder authored Jan 16, 2025
1 parent 700f90e commit c239628
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clients/detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ impl<C: DetectorClient + HttpClientExt> DetectorClientExt for C {
) -> Result<U, Error> {
let mut headers = headers;
headers.append(DETECTOR_ID_HEADER_NAME, model_id.parse().unwrap());
headers.append("content-type", "application/json".parse().unwrap());

let response = self.inner().post(url, headers, request).await?;

let status = response.status();
Expand Down

0 comments on commit c239628

Please sign in to comment.