Skip to content

Commit aa07b83

Browse files
committed
Fix #1481 Add The Haskell Stack to whitelisted User-Agent
1 parent 1594efc commit aa07b83

File tree

1 file changed

+2
-0
lines changed
  • src/Distribution/Server/Framework

1 file changed

+2
-0
lines changed

src/Distribution/Server/Framework/CSRF.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ isCsrfSafe req
2424
(`BS.isPrefixOf` ua)
2525
-- UA set by `cabal upload` and such
2626
[ BS.pack "cabal-install/"
27+
-- UA set by Stack
28+
, BS.pack "The Haskell Stack"
2729
, -- Add some other common CLI tools here too?
2830
BS.pack "curl/"
2931
, -- referenced in this repository. Unclear whether strictly needed, but whitelisting just in case:

0 commit comments

Comments
 (0)