mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
aquatic_http: remove underscore from "failure_reason"
This commit is contained in:
parent
e7de66603e
commit
9707898a32
2 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ impl Connection {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for chunk in response_bytes.windows(18){
|
for chunk in response_bytes.windows(18){
|
||||||
if chunk == b"d14:failure_reason" {
|
if chunk == b"d14:failure reason" {
|
||||||
state.statistics.responses_failure.fetch_add(1, Ordering::SeqCst);
|
state.statistics.responses_failure.fetch_add(1, Ordering::SeqCst);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ impl FailureResponse {
|
||||||
|
|
||||||
let reason_bytes = self.failure_reason.as_bytes();
|
let reason_bytes = self.failure_reason.as_bytes();
|
||||||
|
|
||||||
bytes_written += output.write(b"d14:failure_reason")?;
|
bytes_written += output.write(b"d14:failure reason")?;
|
||||||
bytes_written += output.write(
|
bytes_written += output.write(
|
||||||
itoa::Buffer::new().format(reason_bytes.len()).as_bytes()
|
itoa::Buffer::new().format(reason_bytes.len()).as_bytes()
|
||||||
)?;
|
)?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue