Skip to content

Commit

Permalink
Merge branch 'master' of github.com:robbiehanson/CocoaHTTPServer
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiehanson committed Mar 19, 2012
2 parents 583887b + 22e35dc commit 05d0ea7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store
*.pbxuser *.pbxuser
*.mode1v3 *.mode1v3
*.mode2v3 *.mode2v3
xcuserdata xcuserdata
*~
1 change: 1 addition & 0 deletions Core/HTTPConnection.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2194,6 +2194,7 @@ - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData*)data withTag:(long)ta


NSString *sizeLine = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; 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); requestChunkSize = (UInt64)strtoull([sizeLine UTF8String], NULL, 16);
requestChunkSizeReceived = 0; requestChunkSizeReceived = 0;


Expand Down

0 comments on commit 05d0ea7

Please sign in to comment.