0

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.

1 Answer 1

1

If the fifth character of line is equal to ' ', return error?

3
  • Yes it does, just as indicated in the error message. But I don't know how to fix it.
    – Nic
    Commented Nov 10, 2016 at 4:15
  • No, I meant as a solution. I'm telling you to test if line[4] is a white space, and if it is, return the error. Commented 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.
    – Nic
    Commented Nov 11, 2016 at 7:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .