-
Notifications
You must be signed in to change notification settings - Fork 276
Open
Description
Hey,
I think the FilenameTooLong error in Wai Parse is incorrectly thrown for a too long key name, not the file name.
wai/wai-extra/Network/Wai/Parse.hs
Lines 583 to 589 in 53da27d
| Just (mct, name, Just filename) -> do | |
| case prboKeyLength o of | |
| Just maxKeyLength -> | |
| when (S.length name > maxKeyLength) $ | |
| E.throwIO $ | |
| FilenameTooLong name maxKeyLength | |
| Nothing -> return () |
The name length check mirrors the one just beneath the other Just (_ct, name, Nothing) case and that's for the parameter name. There's no code right now that checks the file name length, so the error itself seems unused.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels