Skip to content

Commit

Permalink
1.10.1
Browse files Browse the repository at this point in the history
Fix bug with https redirects
  • Loading branch information
e3ndr committed Nov 30, 2020
1 parent b395948 commit 4d09f6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>co.casterlabs</groupId>
<artifactId>Katana</artifactId>
<version>1.10.0</version>
<version>1.10.1</version>

<repositories>
<repository>
Expand Down
13 changes: 1 addition & 12 deletions src/main/java/co/casterlabs/katana/Katana.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@Getter
public class Katana {
public static final String ERROR_HTML = "<!DOCTYPE html><html><head><title>$RESPONSECODE</title></head><body><h1>$RESPONSECODE</h1><p>$DESCRIPTION</p><br/><p><i>Running Casterlabs Katana, $ADDRESS</i></p></body></html>";
public static final String VERSION = "1.10.0";
public static final String VERSION = "1.10.1";
public static final Gson GSON = new GsonBuilder().setPrettyPrinting().create();

private Map<String, Class<? extends Servlet>> servlets = new HashMap<>();
Expand Down Expand Up @@ -55,17 +55,6 @@ public void run() {
}).start();
}

public void init(ServerConfiguration... configurations) {
for (ServerConfiguration config : configurations) {
try {
this.addConfiguration(config);
} catch (Exception e) {
this.logger.severe("Config generated an exception:");
e.printStackTrace();
}
}
}

public void init(JsonArray configurations) {
for (JsonElement element : configurations) {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/co/casterlabs/katana/http/HttpSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public boolean hasHeader(String header) {
}

public String getQueryString() {
if (this.session.getQueryParameterString().isEmpty()) {
if (this.session.getQueryParameterString() == null) {
return "";
} else {
return "?" + this.session.getQueryParameterString();
Expand Down

0 comments on commit 4d09f6d

Please sign in to comment.