Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
bstiel committed Sep 12, 2016
1 parent 95e1d17 commit 33de426
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Requests/Providers/HttpProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ public JToken Get(string url, Dictionary<string, string> headers)
{
var text = reader.ReadToEnd();
response["Text"] = text;
if(httpResponse.ContentType.ToLower().Contains("application/json"))
if (httpResponse.ContentType.ToLower().Contains("application/json"))
response.Add("Json", Parser.Parse(text));
}
}
}
return response;
}

public JToken Put(string url, JToken payload, Dictionary<string, string> headers)
{
return null;
}
}
}

0 comments on commit 33de426

Please sign in to comment.