Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 05d0ea70289814ffde31e6f9e26679c4182f943e 2 parents 583887b + 22e35dc
@robbiehanson authored
Showing with 3 additions and 0 deletions.
  1. +2 −0  .gitignore
  2. +1 −0  Core/HTTPConnection.m
View
2  .gitignore
@@ -1,4 +1,6 @@
+.DS_Store
*.pbxuser
*.mode1v3
*.mode2v3
xcuserdata
+*~
View
1  Core/HTTPConnection.m
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.