Skip to content

Commit

Permalink
Add 307 Redirect Response (#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSNev authored Jun 14, 2021
1 parent bd0cbc9 commit a61d6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channels/applicationinsights-channel-js/src/Sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {

// Update End Point url if permanent redirect or moved permanently
// Updates the end point url before retry
if(status === 301 || status === 308 ) {
if(status === 301 || status === 307 || status === 308) {
if(!_checkAndUpdateEndPointUrl(responseUrl)) {
_self._onError(payload, errorMessage);
return;
Expand Down

0 comments on commit a61d6ca

Please sign in to comment.