File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ All notable changes to this project will be documented in this file. Changes not
1818
1919# [ Unreleased]
2020
21+ ## Fixed
22+
23+ - Fix misspell ` serialise ` . ([ #473 ] ( https://github.com/httpswift/swifter/pull/473 ) ) by [ @mtgto ] ( https://github.com/mtgto )
24+
2125# [ 1.5.0]
2226
2327## Added
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ public enum HttpResponseBody {
5151 try $0. write ( data)
5252 } )
5353 case . htmlBody( let body) :
54- let serialised = " <html><meta charset= \" UTF-8 \" ><body> \( body) </body></html> "
55- let data = [ UInt8] ( serialised . utf8)
54+ let serialized = " <html><meta charset= \" UTF-8 \" ><body> \( body) </body></html> "
55+ let data = [ UInt8] ( serialized . utf8)
5656 return ( data. count, {
5757 try $0. write ( data)
5858 } )
@@ -61,14 +61,14 @@ public enum HttpResponseBody {
6161 try $0. write ( data)
6262 } )
6363 case . custom( let object, let closure) :
64- let serialised = try closure ( object)
65- let data = [ UInt8] ( serialised . utf8)
64+ let serialized = try closure ( object)
65+ let data = [ UInt8] ( serialized . utf8)
6666 return ( data. count, {
6767 try $0. write ( data)
6868 } )
6969 }
7070 } catch {
71- let data = [ UInt8] ( " Serialisation error: \( error) " . utf8)
71+ let data = [ UInt8] ( " Serialization error: \( error) " . utf8)
7272 return ( data. count, {
7373 try $0. write ( data)
7474 } )
You can’t perform that action at this time.
0 commit comments