Skip to content

Commit a8292ae

Browse files
committed
Corrected a variable name in EIRequestController class.
1 parent 890c8b3 commit a8292ae

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/com.ericsson.ei.frontend/EIRequestsController.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,20 +162,20 @@ public ResponseEntity<String> postRequests(Model model, HttpServletRequest reque
162162
LOG.info("Got HTTP Request with method POST.\nUrlSuffix: " + eiBackendAddressSuffix +
163163
"\nForwarding Request to EI Backend with url: " + newRequestUrl);
164164

165-
String inputReqjsonContent = "";
165+
String inputReqJsonContent = "";
166166
try {
167167
BufferedReader inputBufReader = new BufferedReader(request.getReader());
168168
for (String line = inputBufReader.readLine(); line != null; line = inputBufReader.readLine()) {
169-
inputReqjsonContent += line;
169+
inputReqJsonContent += line;
170170
}
171171
inputBufReader.close();
172172
}
173173
catch (IOException e) {
174174
LOG.error("Forward Request Errors: " + e);
175175
}
176176

177-
LOG.debug("Input Request JSON Content to be forwarded:\n" + inputReqjsonContent);
178-
HttpEntity inputReqJsonEntity = new ByteArrayEntity(inputReqjsonContent.getBytes());
177+
LOG.debug("Input Request JSON Content to be forwarded:\n" + inputReqJsonContent);
178+
HttpEntity inputReqJsonEntity = new ByteArrayEntity(inputReqJsonContent.getBytes());
179179

180180

181181
HttpClient client = HttpClients.createDefault();
@@ -231,20 +231,20 @@ public ResponseEntity<String> putRequests(Model model, HttpServletRequest reques
231231
LOG.info("Got HTTP Request with method PUT.\nUrlSuffix: " + eiBackendAddressSuffix +
232232
"\nForwarding Request to EI Backend with url: " + newRequestUrl);
233233

234-
String inputReqjsonContent = "";
234+
String inputReqJsonContent = "";
235235
try {
236236
BufferedReader inputBufReader = new BufferedReader(request.getReader());
237237
for (String line = inputBufReader.readLine(); line != null; line = inputBufReader.readLine()) {
238-
inputReqjsonContent += line;
238+
inputReqJsonContent += line;
239239
}
240240
inputBufReader.close();
241241
}
242242
catch (IOException e) {
243243
LOG.error("Forward Request Errors: " + e);
244244
}
245245

246-
LOG.debug("Input Request JSON Content to be forwarded:\n" + inputReqjsonContent);
247-
HttpEntity inputReqJsonEntity = new ByteArrayEntity(inputReqjsonContent.getBytes());
246+
LOG.debug("Input Request JSON Content to be forwarded:\n" + inputReqJsonContent);
247+
HttpEntity inputReqJsonEntity = new ByteArrayEntity(inputReqJsonContent.getBytes());
248248

249249

250250
HttpClient client = HttpClients.createDefault();

0 commit comments

Comments
 (0)