When loading properties from URLs, if a web server defined its Content-Type without any whitespaces between the text type and charset, the load fails with an invalid content type error. E.g.
text/plain;charset=utf-8 instead of
text/plain; charset=utf-8.
This PR makes the Content-Type check whitespace agnostic by removing all whitespace characters from the header field and comparing it to the appropriate strings.
When loading properties from URLs, if a web server defined its Content-Type without any whitespaces between the text type and charset, the load fails with an invalid content type error. E.g.
text/plain;charset=utf-8
instead oftext/plain; charset=utf-8
.This PR makes the Content-Type check whitespace agnostic by removing all whitespace characters from the header field and comparing it to the appropriate strings.