Skip to content

Commit

Permalink
Merge pull request haskell#92 from clinty/newer-snap-core
Browse files Browse the repository at this point in the history
snap-core 1.0.0.0 has renamed rqRemoteAddr to rqClientAddr
  • Loading branch information
bos authored Jan 9, 2017
2 parents 228673a + 9604e49 commit d85273e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion httpbin/HttpBin/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ respond act = do
"http://" <> host <> rqURI req)]
writeJSON =<< act ([ ("args", toJSON params)
, ("headers", toJSON hdrs)
, ("origin", toJSON . decodeUtf8 . rqRemoteAddr $ req)
, ("origin", toJSON . decodeUtf8 . rqClientAddr $ req)
] <> url)

meths ms h = methods ms (path "" h)
Expand Down
4 changes: 2 additions & 2 deletions wreq.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ executable httpbin
bytestring,
case-insensitive,
containers,
snap-core,
snap-core >= 1.0.0.0,
snap-server >= 0.9.4.4,
text,
time,
Expand Down Expand Up @@ -191,7 +191,7 @@ test-suite tests
lens,
lens-aeson,
network-info,
snap-core,
snap-core >= 1.0.0.0,
snap-server >= 0.9.4.4,
temporary,
test-framework,
Expand Down

0 comments on commit d85273e

Please sign in to comment.