| ... | @@ -44,8 +44,8 @@ pub const Method = enum { | ... | @@ -44,8 +44,8 @@ pub const Method = enum { |
| 44 | /// Actual behavior from clients may vary and should still be checked | 44 | /// Actual behavior from clients may vary and should still be checked |
| 45 | pub fn responseHasBody(m: Method) bool { | 45 | pub fn responseHasBody(m: Method) bool { |
| 46 | return switch (m) { | 46 | return switch (m) { |
| 47 | .GET, .POST, .DELETE, .CONNECT, .OPTIONS, .PATCH => true, | 47 | .GET, .POST, .PUT, .DELETE, .CONNECT, .OPTIONS, .PATCH => true, |
| 48 | .HEAD, .PUT, .TRACE => false, | 48 | .HEAD, .TRACE => false, |
| 49 | }; | 49 | }; |
| 50 | } | 50 | } |
| 51 | | 51 | |