Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
fix: HTTP client closed unexpectedly (#53)
Browse files Browse the repository at this point in the history
* Resovled #52 that casued by closeing the HTTP client unexpectedly

* Update version number to 0.4.1
  • Loading branch information
blaisewang authored Jan 12, 2020
1 parent 084f02d commit 586c9b8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group "blaise.img2latex"
version "0.4.0"
version "0.4.1"

compileJava {
sourceCompatibility = 11
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/OCRRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ static Response getResult(JsonObject parameters) {
HttpResponse result = httpClient.execute(request);
// obtain the message entity of this response
json = EntityUtils.toString(result.getEntity(), "UTF-8");
// close and release resources
httpClient.close();
} catch (IOException e) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/project.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
applicationName=Image2LaTeX
version=0.4.0
version=0.4.1

0 comments on commit 586c9b8

Please sign in to comment.