Fixed linting errors
parent
07bd0beb58
commit
3b3a2f4fc1
|
@ -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 {
|
||||
|
|
|
@ -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') }
|
||||
|
||||
|
|
Loading…
Reference in New Issue