Commit Graph

19 Commits

Author SHA1 Message Date
kustermann@google.com f5e64533a3 Fix multipart transformer in package:mime
The error codition occures in the following scenario:
A multipart transformer returns a new multipart, that part is listened on, but
the subscription for more parts is cancelled. This used to cause cancellation of
the byte stream into the multipart parser, which caused the first part to never
be read completely.

R=lrn@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//874223002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43726 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 13:51:18 +00:00
sgjesse@google.com 7086214a4e Handle multipart MIME parsing with no parts
The multipart MIME parser did not correctly handle the case where there
was only the final boundary.

R=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org//739533002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41805 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-18 14:40:00 +00:00
kevmoo@google.com f39943c2fa pkg/mime: Removed mutable state from MimeMultipartTransformer
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//307963004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36825 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-30 17:38:57 +00:00
ajohnsen@google.com 76c9bb2721 Clean up mime package.
Also speed up default mime-type map, by not using a const map.

BUG=
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//292983002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36543 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 07:07:15 +00:00
kevmoo@google.com 0c4403ee54 pkg/mime: layout as mini-libraries
Update version for publishing
Updated max unittest dependency version

R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//272353002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36115 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-13 17:49:01 +00:00
kevmoo@google.com 8aec1f8b51 pkg/mime: formatting, finals, consts, etc
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//141433024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32072 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 17:24:08 +00:00
kevmoo@google.com 97835dc3a6 pkg/unittest: added LICENSE
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//135343002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31750 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-13 18:07:45 +00:00
dgrove@google.com 18ca7d0036 Re-land r29957 (add versions and constraints for packages and samples), with
SDK constraints bumped from 1.0.0 to 0.8.10+6 .

R=ricow@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//62473002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29986 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 18:28:22 +00:00
ajohnsen@google.com 61f6c51990 Revert "add versions and constraints for packages and samples"
This is currently blocking us from testing samples.

BUG=
R=kasperl@google.com

Review URL: https://codereview.chromium.org//59513007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29960 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 09:09:18 +00:00
jmesserly@google.com 02638c5760 add versions and constraints for packages and samples
- all packages at 0.9.0, except "analyzer" which had a version already
- dependencies at ">=0.9.0 <0.10.0" except analyzer is ">=0.10.0 <0.11.0"
- sdk constraint ">=1.0.0 <2.0.0"

R=sigmund@google.com

Review URL: https://codereview.chromium.org//59763006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29957 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 03:27:58 +00:00
ajohnsen@google.com ad8ad0bfbd Use UTF8-decoding for headers in mime multipart parser.
BUG=http://code.google.com/p/dart/issues/detail?id=14303
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//48403004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29526 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 10:34:12 +00:00
floitsch@google.com 4be547c705 Adapt streams for additional stackTrace argument.
R=lrn@google.com

Review URL: https://codereview.chromium.org//25094002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28511 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 12:02:20 +00:00
kathyw@google.com 160c6b4621 mime library description
R=mcampione@google.com

Review URL: https://codereview.chromium.org//23419003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26713 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 14:27:46 +00:00
kevmoo@j832.com 18d38085ab pkg: analysis aided cleanup
Removed a lot of warnings and hints when opening many pkg projects in the editor

R=gram@google.com

Review URL: https://codereview.chromium.org//22284003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25831 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-06 20:42:04 +00:00
ajohnsen@google.com d3870479df Run mime-multipart test in 'test' callback.
BUG=

Review URL: https://codereview.chromium.org//19158004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24993 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 09:15:18 +00:00
ajohnsen@google.com b2cf4de3ef Fix editor warnings in http_server and mime.
BUG=

Review URL: https://codereview.chromium.org//19158002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24992 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 09:11:06 +00:00
ajohnsen@google.com 40c7d89d66 Move MimeMultipartTransformer and HttpBodyHandler to mime and http_server packages.
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org//18438005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24991 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 08:40:36 +00:00
ajohnsen@google.com 9f9d785362 Fix 'part of' for mime package.
BUG=
R=kasperl@google.com

Review URL: https://codereview.chromium.org//17583010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24331 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 13:14:00 +00:00
ajohnsen@google.com 8e5b350649 Add a new MIME-type package 'mime', with implementation for handling mime-type lookup by path (finename extension) and magic-number matching.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//17582009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24324 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 11:55:49 +00:00