Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Fixed bug that stops Google Sheets API being able to authenticate #456

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions java/src/com/google/gdata/client/http/GoogleGDataRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ public GoogleCookie(URI uri, String cookieHeader) {
*/
private boolean matchDomain(String testDomain, String tailDomain) {

if (tailDomain.startsWith(".")) {
tailDomain= tailDomain.substring(1);
}

// Simple check
if (!testDomain.endsWith(tailDomain)) {
return false;
Expand Down