When there is no "User-Agent" or "Accept" in the header, line 35, 36, 51, or 52 will throw a NullPointerException.