My server get two errors at cs50check: -Requesting cat.jpg returns 200, image/jpeg, and correct image (TODOS) -Requesting two files in a row (cat.html then cat.jpg) succeeds (TODOS)

  • If those are the only two errors you are getting, The problem is probably in load. Use gdb or debug50. – DinoCoderSaurus Oct 21 '16 at 14:16
  • OR it could be a memory leak somewhere else in the program. Use valgrind. valgrind -v --leak-check=full --show-leak-kinds=all --track-origins=yes will maximize feedback. – DinoCoderSaurus Oct 21 '16 at 14:17
  • If you "can't manage to find these errors" and you can see the code, you should know that no one else will be able to find the errors without seeing the code. This post reports the same failures. Look it over. And review the "Reasonable" section of the Honor Code, specifically Sharing snippets of your own code online so that others might help you identify and fix a bug. You can always edit your post and delete the code after you get the help you need. – DinoCoderSaurus Oct 21 '16 at 19:14
  • your iabsolutly rigth dinocodersaurus. iv added the load funct. – lkoks Oct 23 '16 at 10:34
  • I've just tested your load() function and it seems to work fine. It's passing all check50 tests. Maybe the problem lies elsewhere. – Yuri Laguardia Oct 23 '16 at 18:01

You must log in to answer this question.

Browse other questions tagged .