You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If only a single Content-Type header was part of the response the result of (self headers at: 'Content-Type') is a String and everything works. However if the response specified multiple Content-Type headers the result is an Array and calling #trimBoth raises an exception.
In
ZnHeaders>>#contentType
#trimBoth
is sent to header'sContent-Type
value:If only a single
Content-Type
header was part of the response the result of(self headers at: 'Content-Type')
is aString
and everything works. However if the response specified multipleContent-Type
headers the result is anArray
and calling#trimBoth
raises an exception.A simple testcase to raise the error:
The text was updated successfully, but these errors were encountered: