Fixed linting errors

main
Jef Roosens 2022-02-19 15:36:30 +01:00
parent 07bd0beb58
commit 3b3a2f4fc1
Signed by untrusted user: Jef Roosens
GPG Key ID: B580B976584B5F30
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ fn parse_attrs(name string, attrs []string) ?([]http.Method, string) {
}
if x.len > 0 {
return IError(http.UnexpectedExtraAttributeError{
attributes: x
attributes: x
})
}
if methods.len == 0 {

View File

@ -22,7 +22,7 @@ pub struct Result {}
pub const (
methods_with_form = [http.Method.post, .put, .patch]
headers_close = http.new_custom_header_from_map({
'Server': 'VWeb'
'Server': 'VWeb'
http.CommonHeader.connection.str(): 'close'
}) or { panic('should never fail') }