Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91B2518B71 for ; Wed, 21 Oct 2015 17:40:05 +0000 (UTC) Received: (qmail 91501 invoked by uid 500); 21 Oct 2015 17:39:43 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 91464 invoked by uid 500); 21 Oct 2015 17:39:43 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 91453 invoked by uid 99); 21 Oct 2015 17:39:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2015 17:39:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C1DBBE095C; Wed, 21 Oct 2015 17:39:42 +0000 (UTC) From: daserge To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-plugin-file-transfer pull request: Gzip support for wp8.x ... Content-Type: text/plain Message-Id: <20151021173942.C1DBBE095C@git1-us-west.apache.org> Date: Wed, 21 Oct 2015 17:39:42 +0000 (UTC) Github user daserge commented on the pull request: https://github.com/apache/cordova-plugin-file-transfer/pull/85#issuecomment-149973070 @sviluppatoribk, thanks for your contribution! I have filed a Jira issue for this: https://issues.apache.org/jira/browse/CB-9839 In order this to be merged could you please rebase, squash and rename commit and PR to `"CB-9839 Add gzip support to file-transfer.download on wp8"`? Also please sign the ICLA: http://www.apache.org/dev/new-committers-guide.html#cla gzip-case also needs an update in terms of progress event as length becomes non computable; the code change can be the following: ```csharp bool useGzip = encodingHeader.Contains("gzip"); using (Stream responseStreamGz = useGzip ? new GZipStream(response.GetResponseStream(), CompressionMode.Decompress) : response.GetResponseStream()) ... if (buffer.Length > 0 && !reqState.isCancelled) { writer.Write(buffer); if (useGzip) { DispatchFileTransferProgress(0, 0, callbackId); } else { DispatchFileTransferProgress(bytesRead, totalBytes, callbackId); } } ... ``` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org