You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2016/08/02 08:29:06 UTC

cordova-plugins git commit: CB-11644: (ios) Set cookie path to root

Repository: cordova-plugins
Updated Branches:
  refs/heads/master 22ae756dc -> 1c6cc873a


CB-11644: (ios) Set cookie path to root

This closes #27

Signed-off-by: Shazron Abdullah <sh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugins/commit/1c6cc873
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugins/tree/1c6cc873
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugins/diff/1c6cc873

Branch: refs/heads/master
Commit: 1c6cc873acc649673707d68491464e315c18a93d
Parents: 22ae756
Author: Connor Pearson <cj...@gmail.com>
Authored: Fri Jul 29 16:12:19 2016 -0400
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Aug 2 01:28:23 2016 -0700

----------------------------------------------------------------------
 local-webserver/src/ios/CDVLocalWebServer.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1c6cc873/local-webserver/src/ios/CDVLocalWebServer.m
----------------------------------------------------------------------
diff --git a/local-webserver/src/ios/CDVLocalWebServer.m b/local-webserver/src/ios/CDVLocalWebServer.m
index eaaa921..91e977f 100644
--- a/local-webserver/src/ios/CDVLocalWebServer.m
+++ b/local-webserver/src/ios/CDVLocalWebServer.m
@@ -241,7 +241,7 @@
 
             if (hasToken && !hasCookie) {
                 //set cookie
-                [response setValue:authToken forAdditionalHeader:@"Set-Cookie"];
+                [response setValue:[NSString stringWithFormat:@"%@;path=/", authToken] forAdditionalHeader:@"Set-Cookie"];
             }
             complete(response);
         });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org