|
@@ -140,7 +140,7 @@ public class HttpRequest {
|
|
|
matchOffset = ( x == boundaryArray[matchOffset] ? matchOffset + 1 : 0 )
|
|
matchOffset = ( x == boundaryArray[matchOffset] ? matchOffset + 1 : 0 )
|
|
|
body.append(x)
|
|
body.append(x)
|
|
|
if matchOffset == boundaryArray.count {
|
|
if matchOffset == boundaryArray.count {
|
|
|
- body.removeRange(Range<Int>(start: body.count-matchOffset, end: body.count))
|
|
|
|
|
|
|
+ body.removeRange(Range<Int>(body.count-matchOffset ..< body.count))
|
|
|
if body.last == HttpRequest.NL {
|
|
if body.last == HttpRequest.NL {
|
|
|
body.removeLast()
|
|
body.removeLast()
|
|
|
if body.last == HttpRequest.CR {
|
|
if body.last == HttpRequest.CR {
|