Skip to content

Commit

Permalink
Run inets in stand_alone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Wojcikowski committed Aug 8, 2018
1 parent 9eb0481 commit ac2f1a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exometer_prometheus_httpd.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ start(Opts) ->
{server_name, "prometheus"},
{document_root, code:priv_dir(exometer_prometheus)},
{server_root, code:priv_dir(exometer_prometheus)}
], inets).
], stand_alone).

do(Req) ->
Method = Req#mod.method,
Expand All @@ -37,4 +37,4 @@ do(Req) ->
RespHeaders = [{code, 404}, {content_length, ContentLength}],
{break, [{response, {response, RespHeaders, [Payload]}}]}
end.

0 comments on commit ac2f1a8

Please sign in to comment.