My web server in pset6 successfully passed check50 but I got a grade of "only" 0.96. All test cases got a 1 except for “Two spaces after GET returns error code” which is graded a 0. Any ideas how this could be solved? I tried a lot but can't figure it out. Any help is appreciated. Thank you.
If the fifth character of line is equal to
' ', return error?
Yes it does, just as indicated in the error message. But I don't know how to fix it.– NicNov 10, 2016 at 4:15
No, I meant as a solution. I'm telling you to test if line is a white space, and if it is, return the error. Nov 10, 2016 at 10:14
I had actually tried that before but I think I made things a bit too complicated. Tried it the easy way now and it worked :) Thanks for the hint.– NicNov 11, 2016 at 7:22