Skip to content

Commit

Permalink
Remove Carriage Return even when no Line Feed is found
Browse files Browse the repository at this point in the history
  • Loading branch information
damuellen committed Jan 30, 2016
1 parent 50c3a62 commit ca62bda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ public class Request {
body.removeRange(Range(body.count-matchOffset..<body.count))
if body.last == Request.NL {
body.removeLast()
if body.last == Request.CR {
body.removeLast()
}
}
if body.last == Request.CR {
body.removeLast()
}
return body
}
Expand Down

0 comments on commit ca62bda

Please sign in to comment.