Skip to content

Commit 76ef5b7

Browse files
committed
Fix bug when parsing OAuth2 response.
1 parent f08a164 commit 76ef5b7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Dropbox.Api/DropboxOauth2Helper.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ public static OAuth2Response ParseTokenFragment(Uri redirectedUri)
321321
case "token_type":
322322
tokenType = Uri.UnescapeDataString(elements[1]);
323323
break;
324-
default:
325-
throw new ArgumentException("Unexpected values in fragment", "redirectedUri");
326324
}
327325
}
328326

@@ -460,8 +458,6 @@ public static Task<OAuth2Response> ProcessCodeFlowAsync(Uri responseUri, string
460458
}
461459

462460
break;
463-
default:
464-
throw new ArgumentException("The responseUri contains unexpected values in the query component.", "responseUri");
465461
}
466462
}
467463

0 commit comments

Comments
 (0)