Permalink
Browse files

Cosmetic.

  • Loading branch information...
1 parent 4ac63e3 commit a5e7ad77963f1e7130d8ca870cfd9a7c1a12c8cc @tonyg committed May 15, 2012
Showing with 2 additions and 6 deletions.
  1. +1 −3 src/rfc4627_jsonrpc_inets.erl
  2. +1 −3 src/rfc4627_jsonrpc_mochiweb.erl
@@ -161,10 +161,8 @@ do_rpc(#mod{init_data = #init_data{peername = {PeerPort, PeerName}},
{ok, ResultEnc, ResponseInfo} ->
{obj, ResponseHeaderFields} =
rfc4627:get_field(ResponseInfo, "http_headers", {obj, []}),
-
- StatusCode =
+ StatusCode =
rfc4627:get_field(ResponseInfo, "http_status_code", 200),
-
Headers = [{K, binary_to_list(V)} || {K,V} <- ResponseHeaderFields],
{proceed, [{response, {response,
[{code, StatusCode},
@@ -110,10 +110,8 @@ handle(AliasPrefix, Req) ->
end,
{obj, ResponseHeaderFields} =
rfc4627:get_field(ResponseInfo, "http_headers", {obj, []}),
-
- StatusCode =
+ StatusCode =
rfc4627:get_field(ResponseInfo, "http_status_code", 200),
-
Headers = [{K, binary_to_list(V)} || {K,V} <- ResponseHeaderFields],
{ok, {StatusCode, Headers ++ [{"Content-type", RespType}], ResultEnc}}
end.

0 comments on commit a5e7ad7

Please sign in to comment.