Skip to content

Commit

Permalink
Merge pull request #27 from martinRenou/fix_typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
achhina authored Jul 24, 2024
2 parents 83d7bd1 + 0184ebc commit e4d6481
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class AutotranslationServiceImpl implements AutotranslationService {

public static final String AUTHORIZATION = "Authorization";
public static final String LOCALHOST = "http://localhost:";
public static final String AUTOTRANSLTION = "/autotranslation/";
public static final String AUTOTRANSLATION = "/autotranslation/";
private final String contextAsString;
private final AutotranslationContext context;

Expand Down Expand Up @@ -66,7 +66,7 @@ public String update(String name, String json) {
checkNotNull(name, "'name' attribute can not be null.");
checkNotNull(json, "'json' attribute can not be null.");
try {
String reply = Request.Post(LOCALHOST + this.context.getPort() + AUTOTRANSLTION)
String reply = Request.Post(LOCALHOST + this.context.getPort() + AUTOTRANSLATION)
.addHeader(AUTHORIZATION, auth())
.bodyString(createBody(name, json), ContentType.APPLICATION_JSON)
.execute().returnContent().asString();
Expand All @@ -84,7 +84,7 @@ public String get(String name) {
String valueString = "";
try {
valueString = Request
.Get(LOCALHOST + this.context.getPort() + AUTOTRANSLTION + this.context.getContextId() + "/" + name)
.Get(LOCALHOST + this.context.getPort() + AUTOTRANSLATION + this.context.getContextId() + "/" + name)
.addHeader(AUTHORIZATION, auth())
.execute()
.returnContent()
Expand Down

0 comments on commit e4d6481

Please sign in to comment.