Permalink
Commits on Jun 1, 2017
  1. Merge pull request #265 from sopvop/better_upload

    A new, much more flexible file uploads API.
    gregorycollins committed on GitHub Jun 1, 2017
Commits on May 30, 2017
Commits on May 29, 2017
  1. Bump version

    sopvop committed May 29, 2017
  2. Implement handleFormUploads

    A high level handleFormUploads is intentended to be used with storage
    functions like storeAsLazyByteString or withTemporaryStore.
    
    In addition to UploadPolicy can be configured with FileUploadPolicy.
    
    FileUploadPolicy is used to setup maximum uploaded file size and maximum
    number of uploaded files. Also it can be used to set how files without
    file names should be handled.
    
    The setSkipFilesWithoutNames is useful to use with html5 forms.
    According to html5 spec, form inputs with type file if not set are
    encoded as files without name, with empty body and mime type of
    application/octet-stream. Default FileUploadPolicy allows empty files
    with zero length, it should fit this use-case. Note that older browsers
    may omit such fields from encoded form-data, so this behaviour is
    desireable.
    
    If you use setStoreFilesWithoutNames then files will be passed to store
    function which may decide how to deal with them, since it gets PartInfo
    as an argument.
    sopvop committed Nov 14, 2016
  3. foldMultipart returns list of FormParams

    Also adapted basic tests from handleFileUpload for foldMultipart
    sopvop committed Nov 14, 2016
  4. Implement foldMultipart

    handleMultipart is now implemented in terms of foldMultipart
    sopvop committed Nov 11, 2016
Commits on May 26, 2017
  1. Merge pull request #271 from hvr/pr/wcompat

    Make `snap-core` forward `-Wcompat`ible
    mightybyte committed on GitHub May 26, 2017
  2. Add missing modules to testsuite's other-modules

    GHC 8.2.1 now warns about this via `-Wmissing-home-modules`
    hvr committed May 26, 2017
  3. Make `snap-core` forward `-Wcompat`ible

    Note, this may require a minor version bump, as new instances for
    `MonadFail` and `Semigroup` were added.
    
    See also
    https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
    hvr committed May 26, 2017
Commits on May 11, 2017
  1. Version 1.0.2.1.

    Gregory Collins committed May 11, 2017
Commits on May 10, 2017
  1. Bump io-streams

    mightybyte committed May 10, 2017
Commits on Mar 25, 2017
  1. Update version (next is 1.0.2.0)

    Gregory Collins committed Mar 25, 2017
  2. Merge pull request #267 from kadena-io/add-CORS

    Add CORS support to snap-core
    gregorycollins committed on GitHub Mar 25, 2017
  3. 1.0.1.3 with CORS support

    slpopejoy committed Mar 25, 2017
Commits on Mar 24, 2017
  1. Bump time dep.

    Gregory Collins committed Mar 24, 2017
  2. Update .gitignore.

    Gregory Collins committed Mar 24, 2017
  3. Version 1.0.1.1.

    Gregory Collins committed Mar 24, 2017
  4. Parsing: fix isToken.

    Gregory Collins committed Mar 24, 2017
Commits on Mar 23, 2017
Commits on Mar 5, 2017
Commits on Jan 18, 2017
  1. Allow vector-0.12

    mightybyte committed Jan 18, 2017
Commits on Nov 11, 2016
  1. Fix FileUpload exceptions tests

    It now requires exception to be thrown for test not to fail.
    
    Fixes testNoFileNameTooBig which was succeeding even though it was wrong.
    sopvop committed Nov 11, 2016
Commits on Nov 6, 2016
  1. Version bump

    mightybyte committed Nov 6, 2016
Commits on Sep 25, 2016
  1. Merge pull request #262 from trofi/master

    snap-core.cabal: add missing file to tarball
    mightybyte committed on GitHub Sep 25, 2016
Commits on Sep 24, 2016
  1. snap-core.cabal: add missing file to tarball

    Noticed a s a test failure when imported package:
    
      snap-core-1.0.0.0:./dist/build/testsuite/testsuite -t fileServe/cfgFancy
      Snap.Util.FileServe.Tests:
        fileServe/cfgFancy: [Failed]
      autogen-sub-dir
    
               Test Cases  Total
       Passed  0           0
       Failed  1           1
       Total   1           1
    
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
    trofi committed Sep 24, 2016
Commits on Aug 8, 2016
Commits on Aug 7, 2016
  1. Use --enable-coverage

    mightybyte committed Aug 7, 2016