Skip to content

Commit dbc37b3

Browse files
committed
Fix srv-response-body-set! in library (lispkit http).
1 parent 28286f1 commit dbc37b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/LispKit/Primitives/HTTPServerLibrary.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ public final class HTTPServerLibrary: NativeLibrary {
906906

907907
private func srvResponseBodySet(expr: Expr, obj: Expr, contentType: Expr?) throws -> Expr {
908908
try self.httpServerResponse(from: expr).response.body =
909-
self.srvResponseBody(from: obj, contentType: contentType)
909+
self.srvResponseBody(from: obj, contentType: contentType?.isFalse ?? true ? nil : contentType)
910910
return .void
911911
}
912912

Sources/LispKitRepl/AppInfo.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public struct AppInfo {
4343
public static let buildDate = { () -> String in
4444
let dateFormatter = DateFormatter()
4545
dateFormatter.dateFormat = "yyyy-MM-dd HH:mm"
46-
return dateFormatter.string(from: Date(timeIntervalSince1970: 1732059709))
46+
return dateFormatter.string(from: Date(timeIntervalSince1970: 1732271904))
4747
}()
4848
public static let buildAnnotation = " (\(AppInfo.buildDate))"
4949
}

0 commit comments

Comments
 (0)