Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Commit

Permalink
MLIBZ-1965 Remove URI encoding since it's already encoded and that le…
Browse files Browse the repository at this point in the history
…ad to wrong authorization token being sent. Fix option value for following redirects.
  • Loading branch information
Georgi Prodanov committed Jul 14, 2017
1 parent 2f46f6e commit 73fffc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export class HttpMiddleware extends Middleware {
const options = {
method: method,
headers: headers,
url: encodeURI(url),
url: url,
content: body,
timeout: timeout,
dontFollowRedirects: followRedirect
dontFollowRedirects: !followRedirect
};
return (HttpRequest(options) as any)
.then((response) => {
Expand Down

0 comments on commit 73fffc7

Please sign in to comment.