<BUG>builder.addHeader(USER_AGENT, request.getUserAgent());}</BUG><CONTEXT>ANData data = new ANData();Request okHttpRequest = null;try {Request.Builder builder = new Request.Builder().url(request.getUrl());if (request.getUserAgent() != null) {<extra_id_0>Headers requestHeaders = request.getHeaders();if (requestHeaders != null) {</CONTEXT>
builder.addHeader(ANConstants.USER_AGENT, request.getUserAgent());} else if (sUserAgent != null) {request.setUserAgent(sUserAgent);builder.addHeader(ANConstants.USER_AGENT, sUserAgent);}