-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix: both and could be present, causing issues in proxy-manifest build * chore: reverted ProxyBasenames * fix: replaces dash with forward slash in url * chore: add failing unit-test * wip: variable handling * fix: handling underscore * chore: addressed PR comment --------- Co-authored-by: Benjamin Wallberg <[email protected]>
- Loading branch information
Showing
7 changed files
with
75 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import dashSegmentHandler from './segment'; | ||
|
||
describe('dashSegmentHandler', () => { | ||
it('handles when a representationId contains underscore', async () => { | ||
const result = await dashSegmentHandler({ | ||
queryStringParameters: { | ||
url: 'https://stream.with_underscore.com/live-$RepresentationID$-$Time$.dash' | ||
}, | ||
path: '/segment_82008145102133_123_audio_track_0_0_nor=128000_128000', | ||
requestContext: { | ||
elb: { targetGroupArn: '' } | ||
}, | ||
isBase64Encoded: false, | ||
httpMethod: 'GET', | ||
body: '', | ||
headers: {} | ||
}); | ||
expect(result.headers.Location).toBe( | ||
'https://stream.with_underscore.com/live-audio_track_0_0_nor=128000_128000-82008145102133.dash' | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters