hunk.code_window:   if (resumeData) {
       downloadTask = [session downloadTaskWithResumeData:resumeData];
     } else {
       downloadTask = [session downloadTaskWithURL:url];
     }
     [downloadTask resume];
   }
   - (NSString *)_scopedPathFromURI:(NSString *)uri
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:     NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];
       if (options[@"headers"]) {
         NSDictionary *headerDict = (NSDictionary *) [options objectForKey:@"headers"];
         for (NSString *key in headerDict) {
           NSString *value = (NSString *) [headerDict objectForKey:key];
           [request addValue:value forHTTPHeaderField:key];
         }
       }
       downloadTask = [session downloadTaskWithRequest:request];
  
hunk.file_path: ios/Exponent/Versioned/Modules/Api/EXFileSystem.m
hunk.type: replace
file: /**
   * Copyright (c) 2015-present, Facebook, Inc.
   * All rights reserved.
   *
   * This source code is licensed under the BSD-style license found in the
   * LICENSE file in the root directory of this source tree. An additional grant
   * of patent rights can be found in the PATENTS file in the same directory.
   *
   * @providesModule RCTEventEmitter
   * @flow
   */
  'use strict';
  
  const BatchedBridge = require('../BatchedBridge/BatchedBridge');
  
  const RCTEventEmitter = {
    register(eventEmitter: any) {
      BatchedBridge.registerCallableModule(
        'RCTEventEmitter',
        eventEmitter
      );
    }
  };
  
  module.exports = RCTEventEmitter;
  