Skip to content

Commit

Permalink
Send the Content-Type header on compute reconfigure
Browse files Browse the repository at this point in the history
Signed-off-by: Tristan Partin <tristan@neon.tech>
  • Loading branch information
tristan957 committed Dec 5, 2024
1 parent 131585e commit 5503528
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control_plane/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ use compute_api::spec::Role;
use nix::sys::signal::kill;
use nix::sys::signal::Signal;
use pageserver_api::shard::ShardStripeSize;
use reqwest::header::CONTENT_TYPE;
use serde::{Deserialize, Serialize};
use url::Host;
use utils::id::{NodeId, TenantId, TimelineId};
Expand Down Expand Up @@ -817,6 +818,7 @@ impl Endpoint {
self.http_address.ip(),
self.http_address.port()
))
.header(CONTENT_TYPE.as_str(), "application/json")
.body(format!(
"{{\"spec\":{}}}",
serde_json::to_string_pretty(&spec)?
Expand Down

0 comments on commit 5503528

Please sign in to comment.