Skip to content

Commit

Permalink
Merge pull request #15 from noppoMan/time
Browse files Browse the repository at this point in the history
Add Time module
  • Loading branch information
noppoMan committed Apr 18, 2016
2 parents e52617e + 7642913 commit 31fe0d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let package = Package(
dependencies: [
.Package(url: "https://github.com/slimane-swift/Middleware.git", majorVersion: 0, minor: 1),
.Package(url: "https://github.com/slimane-swift/Skelton.git", majorVersion: 0, minor: 3),
.Package(url: "https://github.com/slimane-swift/Time.git", majorVersion: 0, minor: 1),
.Package(url: "https://github.com/slimane-swift/POSIXRegex.git", majorVersion: 0, minor: 4)
]
)
3 changes: 2 additions & 1 deletion Sources/Slimane.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 MikeTOKYO. All rights reserved.
//

@_exported import Time
@_exported import Middleware
@_exported import Skelton
@_exported import S4
Expand All @@ -32,7 +33,7 @@ public class Slimane {

internal func dispatch(request: Request, stream: Skelton.HTTPStream){
var request = request
request.response = Response(status: .ok, headers: ["data": Header(Time.rfc1123), "server": Header("Slimane")])
request.response = Response(status: .ok, headers: ["data": Header(Time().rfc1123), "server": Header("Slimane")])

self.middlewares.chain(to: BasicAsyncResponder { _, result in
result {
Expand Down

0 comments on commit 31fe0d4

Please sign in to comment.