Skip to content

Commit 6004107

Browse files
committed
chore: Fix mix.exs.
1 parent d2126a8 commit 6004107

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

lib/http.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ defmodule HTTP do
214214
pid() | nil
215215
) :: {:ok, Response.t()} | {:error, term()}
216216
def handle_async_request(request, _calling_pid, abort_controller_pid) do
217-
# Start the :inets application if it's not already running.
218-
Application.ensure_all_started(:inets)
219-
Application.ensure_all_started(:httpc)
220-
221217
# Use a try/catch block to convert `throw` from handle_httpc_response into an {:error, reason} tuple
222218
try do
223219
case Request.to_httpc_args(request) do

mix.exs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
defmodule HttpFetch.MixProject do
22
use Mix.Project
33

4+
@version "0.1.0"
5+
@source_url "https://github.com/gsmlg-dev/http_fetch"
6+
47
def project do
58
[
69
app: :http_fetch,
7-
version: "0.1.0",
10+
version: @version,
811
elixir: "~> 1.18",
912
start_permanent: Mix.env() == :prod,
1013
deps: deps(),
1114
description:
1215
"A browser-like HTTP fetch API for Elixir using Erlang's built-in :httpc module",
13-
licenses: ["MIT"],
14-
links: %{
15-
"GitHub" => "https://github.com/gsmlg-dev/http_fetch"
16-
}
16+
package: [
17+
files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"],
18+
maintainers: ["Jonathan Gao"],
19+
licenses: ["MIT"],
20+
links: %{"GitHub" => @source_url}
21+
]
1722
]
1823
end
1924

@@ -27,9 +32,6 @@ defmodule HttpFetch.MixProject do
2732

2833
# Run "mix help deps" to learn about dependencies.
2934
defp deps do
30-
[
31-
# {:dep_from_hexpm, "~> 0.3.0"},
32-
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
33-
]
35+
[]
3436
end
3537
end

0 commit comments

Comments
 (0)