To get responce header one should use getHeaderField, not
getRequestProperty. Fixes issue 2250