File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ impl Accept {
137
137
}
138
138
}
139
139
140
- let mut err = Error :: new_adhoc ( "No suitable ContentEncoding found" ) ;
140
+ let mut err = Error :: new_adhoc ( "No suitable Content-Type found" ) ;
141
141
err. set_status ( StatusCode :: NotAcceptable ) ;
142
142
Err ( err)
143
143
}
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ impl AcceptEncoding {
107
107
sort_by_weight ( & mut self . entries ) ;
108
108
}
109
109
110
- /// Determine the most suitable `Content-Type ` encoding.
110
+ /// Determine the most suitable `Content-Encoding ` encoding.
111
111
///
112
112
/// # Errors
113
113
///
@@ -130,7 +130,7 @@ impl AcceptEncoding {
130
130
}
131
131
}
132
132
133
- let mut err = Error :: new_adhoc ( "No suitable ContentEncoding found" ) ;
133
+ let mut err = Error :: new_adhoc ( "No suitable Content-Encoding found" ) ;
134
134
err. set_status ( StatusCode :: NotAcceptable ) ;
135
135
Err ( err)
136
136
}
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl TE {
109
109
sort_by_weight ( & mut self . entries ) ;
110
110
}
111
111
112
- /// Determine the most suitable `Content-Type ` encoding.
112
+ /// Determine the most suitable `Transfer-Encoding ` encoding.
113
113
///
114
114
/// # Errors
115
115
///
@@ -132,7 +132,7 @@ impl TE {
132
132
}
133
133
}
134
134
135
- let mut err = Error :: new_adhoc ( "No suitable ContentEncoding found" ) ;
135
+ let mut err = Error :: new_adhoc ( "No suitable Transfer-Encoding found" ) ;
136
136
err. set_status ( StatusCode :: NotAcceptable ) ;
137
137
Err ( err)
138
138
}
You can’t perform that action at this time.
0 commit comments