cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clelland <...@git.apache.org>
Subject [GitHub] cordova-plugin-file-transfer pull request: CB-6503 allow file uplo...
Date Sat, 28 Jun 2014 03:18:58 GMT
Github user clelland commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-file-transfer/pull/27#discussion_r14322193
  
    --- Diff: src/amazon/FileTransfer.java ---
    @@ -315,8 +315,12 @@ public void run() {
     
                         // Use a post method.
                         conn.setRequestMethod(httpMethod);
    -                    conn.setRequestProperty("Content-Type", "multipart/form-data; boundary="
+ BOUNDARY);
     
    +                    // if we specified a Content-Type header, don't do multipart form
upload
    +                    boolean multipartFormUpload = !headers.has("Content-Type");
    --- End diff --
    
    I've added a null check here -- headers is not necessarily populated by this point. (same
on android)


---
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.
---

Mime
View raw message