Skip to content

Commit

Permalink
Update to ceylon 1.2.2 and vertx 3.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xkr47 committed Jul 27, 2016
1 parent 4ad36a9 commit a2c9c30
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
14 changes: 7 additions & 7 deletions source/org/otherone/vhostproxy/vertx/config.ceylon
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import ceylon.buffer.base {
base64StringStandard
}
import ceylon.buffer.charset {
iso_8859_1
}
import ceylon.collection {
HashMap,
HashSet
Expand All @@ -6,12 +12,6 @@ import ceylon.file {
parsePath,
File
}
import ceylon.io.base64 {
decode
}
import ceylon.io.buffer {
newByteBufferWithData
}

import io.netty.handler.codec.http {
HttpHeaders {
Expand Down Expand Up @@ -85,7 +85,7 @@ Null reject(HttpServerRequest sreq, Integer status, String statusMsg) {
}

String decodeBase64(String s) {
return String(decode(newByteBufferWithData(*(s.map((ch) => ch.integer.byte)))).map((Byte b) => b.unsigned.character));
return iso_8859_1.decode(base64StringStandard.decode(s));
}

String extractHosname(String hostHeader) {
Expand Down
15 changes: 9 additions & 6 deletions source/org/otherone/vhostproxy/vertx/module.ceylon
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
native("jvm") module org.otherone.vhostproxy.vertx "4" {
shared import io.vertx.ceylon.core "3.2.0";
import ceylon.regex "1.2.0";
import ceylon.logging "1.2.0";
//import ceylon.time "1.2.0";
shared import io.vertx.ceylon.core "3.3.2";
//shared import "io.vertx:vertx-lang-ceylon" "3.3.0-SNAPSHOT";
//shared import "io.vertx.lang.ceylon" "3.3.0-SNAPSHOT";
import ceylon.regex "1.2.2";
import ceylon.logging "1.2.2";
//import ceylon.time "1.2.1";
import java.base "7";
import ceylon.file "1.2.0";
import ceylon.io "1.2.0";
//import "it.zero11:acme-client" "0.1.2";
import ceylon.file "1.2.2";
import ceylon.buffer "1.2.2";
}

0 comments on commit a2c9c30

Please sign in to comment.