Permalink
Browse files

Merge branch 'master' of github.com:robbiehanson/CocoaHTTPServer

  • Loading branch information...
robbiehanson committed Mar 19, 2012
2 parents 583887b + 22e35dc commit 05d0ea70289814ffde31e6f9e26679c4182f943e
Showing with 3 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +1 −0 Core/HTTPConnection.m
View
@@ -1,4 +1,6 @@
+.DS_Store
*.pbxuser
*.mode1v3
*.mode2v3
xcuserdata
+*~
View
@@ -2194,6 +2194,7 @@ - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData*)data withTag:(long)ta
NSString *sizeLine = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
+ errno = 0; // Reset errno before calling strtoull() to ensure it is always zero on success
requestChunkSize = (UInt64)strtoull([sizeLine UTF8String], NULL, 16);
requestChunkSizeReceived = 0;

0 comments on commit 05d0ea7

Please sign in to comment.