Skip to content

Commit

Permalink
http_handle_req: correct strange formatting from commit cfb121b
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik authored and jgarzik committed Apr 7, 2011
1 parent cfb121b commit e82050d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,8 @@ static void http_handle_req(struct evhttp_request *req, bool longpoll)
goto err_out_bad_req;
body = EVBUFFER_DATA(req->input_buffer);
body_str = strndup(body, clen);
if (!body_str)
goto err_out_bad_req;
if (!body_str)
goto err_out_bad_req;
} else /* long polling */
body_str = strdup("{\"method\":\"getwork\",\"params\":[],\"id\":1}");

Expand Down

0 comments on commit e82050d

Please sign in to comment.