Closed andrewhampton closed 5 years ago
String#size returns the character count with multi-byte characters counting as 1. However, Content-Length is expecting the length of the body in bytes. String#bytesize is the correct method to use here.
String#size
String#bytesize
String#size
returns the character count with multi-byte characters counting as 1. However, Content-Length is expecting the length of the body in bytes.String#bytesize
is the correct method to use here.