Better conformance with HttpUrlConnection standard behavior.