Skip to content

Commit

Permalink
ewgi_yaws: added default Content-Type="text/plain"
Browse files Browse the repository at this point in the history
  • Loading branch information
davide committed Sep 17, 2009
1 parent 1c8716f commit 3664ab8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ewgi_yaws.erl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ run(Arg) ->

handle_result(Ctx) ->
{Code, _} = ewgi_api:response_status(Ctx),
ContentType = ewgi_api:content_type(Ctx),
ContentType =
case ewgi_api:content_type(Ctx) of
undefined -> "text/plain";
CT -> CT
end,
H = ewgi_api:response_headers(Ctx),
Acc = get_yaws_headers(H),
case ewgi_api:response_message_body(Ctx) of
Expand Down

0 comments on commit 3664ab8

Please sign in to comment.