Browse Source

ref: with the new httpotion version we can follow redirects

tags/microformats2-0.0.6
Christian Kruse 5 years ago
parent
commit
53ac500fb3
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lib/microformats2.ex
  2. +1
    -1
      mix.lock

+ 1
- 1
lib/microformats2.ex View File

@@ -1,7 +1,7 @@

defmodule Microformats2 do
def parse(url) do
response = HTTPotion.get url
response = HTTPotion.get url, [ follow_redirects: true ]

if HTTPotion.Response.success?(response) do
parse(response.body, url)


+ 1
- 1
mix.lock View File

@@ -1,4 +1,4 @@
%{"floki": {:hex, :floki, "0.7.2"},
"httpotion": {:hex, :httpotion, "2.2.0"},
"httpotion": {:hex, :httpotion, "2.2.1"},
"ibrowse": {:hex, :ibrowse, "4.2.2"},
"mochiweb": {:hex, :mochiweb, "2.12.2"}}

Loading…
Cancel
Save