Skip to content

Commit c4b4b8a

Browse files
committed
Fix Connection.stopImpersonating() - command no longer returns a redirect
1 parent 70f2fa0 commit c4b4b8a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/org/labkey/remoteapi/Connection.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ public Connection stopImpersonating() throws IOException, CommandException
380380
{
381381
CommandResponse resp = new StopImpersonatingCommand().execute(this, _impersonatePath);
382382

383-
// on success, a 302 response is returned (this command disables redirects)
384-
if (resp.getStatusCode() != 302)
383+
if (resp.getStatusCode() != 200)
385384
throw new CommandException("Failed to stop impersonating");
386385

387386
_impersonateUser = null;

0 commit comments

Comments
 (0)