We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f380b8b commit a5f0c86Copy full SHA for a5f0c86
frameworks/Rust/hyperlane/src/route.rs
@@ -11,7 +11,7 @@ pub async fn json(controller_data: ControllerData) {
11
12
pub async fn plaintext(controller_data: ControllerData) {
13
let _ = controller_data
14
- .set_request_header(CONTENT_TYPE, TEXT_PLAIN)
+ .set_response_header(CONTENT_TYPE, TEXT_PLAIN)
15
.await
16
.set_response_body(RESPONSEDATA)
17
.await;
@@ -29,7 +29,7 @@ pub async fn queries(controller_data: ControllerData) {
29
.get_request_query("q")
30
31
.map(|queries| queries.parse::<Queries>().unwrap_or_default())
32
- .unwrap_or(0)
+ .unwrap_or(1)
33
.min(ROW_LIMIT as usize);
34
let mut data: Vec<QueryRow> = Vec::with_capacity(queries);
35
for _ in 0..queries {
0 commit comments