Skip to content

Commit

Permalink
Fix error in handling user request
Browse files Browse the repository at this point in the history
Fix that bad request error is sent after correct response
  • Loading branch information
theodoor authored and liesen committed Oct 10, 2012
1 parent 8c4ffa6 commit 70f396a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server.c
Expand Up @@ -719,9 +719,11 @@ static void handle_user_request(struct evhttp_request *request,
put_user_inbox(canonical_username, request, session);
}
break;
}

evhttp_send_error(request, HTTP_BADREQUEST, "Bad Request");
default:
evhttp_send_error(request, HTTP_BADREQUEST, "Bad Request");
break;
}
}

// Request dispatcher
Expand Down

0 comments on commit 70f396a

Please sign in to comment.