Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash of array method #186

Open
kimiWu opened this issue Jun 2, 2017 · 1 comment
Open

Crash of array method #186

kimiWu opened this issue Jun 2, 2017 · 1 comment

Comments

@kimiWu
Copy link

kimiWu commented Jun 2, 2017

Fatal Exception: NSRangeException
*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array

in HttpConnection.m 1477 line.

DDRange range = [[ranges objectAtIndex:rangeIndex] ddrangeValue];

should modify to :

DDRange range = ((rangeIndex >= 0) && (ranges.count < rangeIndex)) ? [[ranges objectAtIndex:rangeIndex] ddrangeValue] : (DDRange){0};
@adeeltahir98
Copy link

https://github.com/robbiehanson/CocoaHTTPServer/issues/78
I was also facing the same issue and I found the solution here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants