Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect error, oauth replay #6

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -89,7 +89,7 @@ public void calculateAndAddSignature(String baseURL, Request request, RequestBui
long timestamp = System.currentTimeMillis() / 1000L;
String signature = calculateSignature(method, baseURL, timestamp, nonce, request.getParams(), request.getQueryParams());
String headerValue = constructAuthHeader(signature, nonce, timestamp);
requestBuilder = requestBuilder.addHeader(HEADER_AUTHORIZATION, headerValue);
requestBuilder = requestBuilder.setHeader(HEADER_AUTHORIZATION, headerValue);
}

/**
Expand Down
Expand Up @@ -930,6 +930,8 @@ public void messageReceived(final ChannelHandlerContext ctx, MessageEvent e) thr
if (chunk.isLast()) {
AsyncCallable ac = (AsyncCallable) ctx.getAttachment();
ac.call();
}else{
return;
}
} else {
AsyncCallable ac = (AsyncCallable) ctx.getAttachment();
Expand Down