Skip to content

Commit ba656c7

Browse files
authored
Merge pull request #1482 from mpilgrem/fix1481
Fix #1481 Add The Haskell Stack to whitelisted User-Agent
2 parents e270b05 + aa07b83 commit ba656c7

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)