Skip to content

Commit

Permalink
Merge pull request #56 from noppoMan/content-length-comparison
Browse files Browse the repository at this point in the history
Change comparison type of response.contentLength from Int to Int?
  • Loading branch information
noppoMan authored Aug 17, 2016
2 parents 76d5b0a + 0ce6079 commit a8ebf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Slimane/Slimane+Server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private func processStream(_ response: Response, _ request: Request, _ stream: H

response.headers["Server"] = "Slimane"

if response.contentLength == 0 && !response.isChunkEncoded {
if response.contentLength == nil && !response.isChunkEncoded {
response.contentLength = response.bodyLength
}

Expand Down

0 comments on commit a8ebf22

Please sign in to comment.