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 @@ -141,7 +141,7 @@ impl Accept {
141
141
}
142
142
}
143
143
144
- let mut err = Error :: new_adhoc ( "No suitable ContentEncoding found" ) ;
144
+ let mut err = Error :: new_adhoc ( "No suitable Content-Type found" ) ;
145
145
err. set_status ( StatusCode :: NotAcceptable ) ;
146
146
Err ( err)
147
147
}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ impl AcceptEncoding {
110
110
sort_by_weight ( & mut self . entries ) ;
111
111
}
112
112
113
- /// Determine the most suitable `Content-Type ` encoding.
113
+ /// Determine the most suitable `Content-Encoding ` encoding.
114
114
///
115
115
/// # Errors
116
116
///
@@ -133,7 +133,7 @@ impl AcceptEncoding {
133
133
}
134
134
}
135
135
136
- let mut err = Error :: new_adhoc ( "No suitable ContentEncoding found" ) ;
136
+ let mut err = Error :: new_adhoc ( "No suitable Content-Encoding found" ) ;
137
137
err. set_status ( StatusCode :: NotAcceptable ) ;
138
138
Err ( err)
139
139
}
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ impl TE {
108
108
sort_by_weight ( & mut self . entries ) ;
109
109
}
110
110
111
- /// Determine the most suitable `Content-Type ` encoding.
111
+ /// Determine the most suitable `Transfer-Encoding ` encoding.
112
112
///
113
113
/// # Errors
114
114
///
@@ -131,7 +131,7 @@ impl TE {
131
131
}
132
132
}
133
133
134
- let mut err = Error :: new_adhoc ( "No suitable ContentEncoding found" ) ;
134
+ let mut err = Error :: new_adhoc ( "No suitable Transfer-Encoding found" ) ;
135
135
err. set_status ( StatusCode :: NotAcceptable ) ;
136
136
Err ( err)
137
137
}
You can’t perform that action at this time.
0 commit comments