File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -48,3 +48,5 @@ project/plugins/project/
48
48
49
49
50
50
51
+
52
+ .DS_Store
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name := "SCALA-DNS"
2
2
3
3
version := " 1.0"
4
4
5
- scalaVersion := " 2.9.2 "
5
+ scalaVersion := " 2.10.0 "
6
6
7
7
resolvers += " Typesafe Repository" at " http://repo.typesafe.com/typesafe/releases/"
8
8
@@ -16,14 +16,14 @@ libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0.3"
16
16
17
17
libraryDependencies += " com.typesafe.akka" % " akka-remote" % " 2.0.3"
18
18
19
- libraryDependencies += " org.scalatest" %% " scalatest" % " 1.8 " % " test"
19
+ libraryDependencies += " org.scalatest" %% " scalatest" % " 1.9 " % " test"
20
20
21
21
libraryDependencies += " org.skife.com.typesafe.config" % " typesafe-config" % " 0.3.0"
22
22
23
23
libraryDependencies += " ch.qos.logback" % " logback-classic" % " 1.0.3"
24
24
25
- libraryDependencies += " com.fasterxml.jackson.module" % " jackson-module-scala " % " 2.1.2 "
25
+ libraryDependencies += " com.fasterxml.jackson.module" % " jackson-module-scala_2.10 " % " 2.1.3 "
26
26
27
- libraryDependencies += " com.fasterxml.jackson.core" % " jackson-core" % " 2.1.2 "
27
+ libraryDependencies += " com.fasterxml.jackson.core" % " jackson-core" % " 2.1.3 "
28
28
29
29
// libraryDependencies += "org.apache.servicemix.bundles" % "org.apache.servicemix.bundles.aws-java-sdk" % "1.3.27"
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ object Name {
103
103
104
104
val newName = if (existingName.isEmpty) name else name.take(name.indexOfSlice(existingName))
105
105
106
- val trailer = if (existingName.isEmpty) Array () else RRData .shortToBytes((names(nameToString(existingName)) + (MASK_POINTER << 8 )).toShort)
106
+ val trailer = if (existingName.isEmpty) Array [ Byte ] () else RRData .shortToBytes((names(nameToString(existingName)) + (MASK_POINTER << 8 )).toShort)
107
107
(bytes ++ toByteArray(newName) ++ trailer, if (newName.isEmpty) names else names ++ storeNewName(newName))
108
108
}
109
109
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ case class A(record: Long) extends AbstractRecord {
26
26
lazy val address = RRData .intToBytes(record.toInt).map(b => if (b < 0 ) b + 256 else b).reverse.mkString(" ." )
27
27
28
28
def toByteArray = RRData .intToBytes(record.toInt)
29
- def addressToByteArray = Array ()
29
+ def addressToByteArray = Array [ Byte ] ()
30
30
31
31
def isEqualTo (any : Any ) = any match {
32
32
case r : A => r.record == record
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ object HttpHandler extends SimpleChannelUpstreamHandler {
66
66
val indexFiles = " index.html" :: " index.htm" :: Nil
67
67
mimeTypesMap.addMimeTypes(" application/x-javascript js JS" )
68
68
mimeTypesMap.addMimeTypes(" text/css css CSS" )
69
+ mimeTypesMap.addMimeTypes(" text/html html htm HTML HTM" )
69
70
70
71
def sanitizeURI (uri : String ) = {
71
72
val decUri = try {
You can’t perform that action at this time.
0 commit comments