Skip to content

Commit

Permalink
[0.2.1] Update rocket to rc2 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonkku107 committed Jun 20, 2022
1 parent 1220176 commit 581251a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
slashook-macros = { version = "=0.1.0", path = "./macros" }
rocket = "=0.5.0-rc.1"
rocket = "=0.5.0-rc.2"
serde = "^1.0.136"
serde_json = "^1.0.79"
serde_repr = "^0.1.7"
Expand Down
4 changes: 2 additions & 2 deletions src/webhook/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl<'r> Responder<'r, 'static> for Res {
match self {
Self::Raw{ status, json } => {
Response::build()
.merge(content::Json(json.to_string()).respond_to(req)?)
.merge(content::RawJson(json.to_string()).respond_to(req)?)
.status(status)
.ok()
},
Expand All @@ -51,7 +51,7 @@ impl<'r> Responder<'r, 'static> for Res {
}
}
Response::build()
.merge(content::Json(serde_json::to_string(&data).map_err(|_| Status::InternalServerError)?).respond_to(req)?)
.merge(content::RawJson(serde_json::to_string(&data).map_err(|_| Status::InternalServerError)?).respond_to(req)?)
.status(status)
.ok()
}
Expand Down

0 comments on commit 581251a

Please sign in to comment.