Adding a User-Agent header for the SDK

Replace with isNotBlank()