Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/85139


Change subject: Avoid sending cookies when using OAuth since they are useless
......................................................................

Avoid sending cookies when using OAuth since they are useless

Change-Id: I14f9b505e103ac7b587385ce408ac81517f40b3f
---
M api/MWOAuthAPI.setup.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth 
refs/changes/39/85139/1

diff --git a/api/MWOAuthAPI.setup.php b/api/MWOAuthAPI.setup.php
index 2503e8e..5faa0d0 100644
--- a/api/MWOAuthAPI.setup.php
+++ b/api/MWOAuthAPI.setup.php
@@ -128,6 +128,7 @@
                                Hooks::register( 'AfterFinalPageOutput', 
function( $out ) {
                                        // Just in case, make sure this is not 
a valid login session for sanity
                                        
RequestContext::getMain()->getRequest()->setSessionData( 'wsUserID', 0 );
+                                       header_remove( 'Set-Cookie' ); // no 
real use for these
                                } );
 
                                $result = true;

-- 
To view, visit https://gerrit.wikimedia.org/r/85139
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I14f9b505e103ac7b587385ce408ac81517f40b3f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAuth
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to