packages feed

kawhi 0.2.2 → 0.2.3

raw patch · 3 files changed

+8/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

changelog.md view
@@ -1,5 +1,11 @@ # Changelog +## 0.2.3++Add HTTP `Referer` header to all requests. ++*This may not be added versions greater than `0.2.*`, because `0.3.0` allows users to independently retrieve data from NBA Stats.*+ ## 0.2.2  Updated to add HTTP headers required by NBA Stats.
kawhi.cabal view
@@ -1,5 +1,5 @@ name: kawhi-version: 0.2.2+version: 0.2.3 synopsis: stats.NBA.com library description: Functions and types for interacting with stats.NBA.com homepage: https://github.com/thunky-monk/kawhi
library/Data/NBA/Stats.hs view
@@ -254,7 +254,7 @@     >>= MonadHttp.performRequest     where       modifyRequest =-        HTTP.setRequestHeaders [("Accept-Language","en-us"), ("Accept", "application/json")]+        HTTP.setRequestHeaders [("Accept-Language","en-us"), ("Accept", "application/json"), ("Referer", "stats.nba.com")]         . HTTP.setQueryString params  {- $use