Skip to content

Commit

Permalink
Fix for older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 16, 2023
1 parent 13eb956 commit 88b1639
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ async function readSession(sessionId) {

exports.handler = async event => {
const data = event.queryStringParameters
const { sessionId } = data
let { sessionId } = data
let tableData

// workaround for '+' character being encoded by api gateway (?) as space, xref
// https://github.com/GMOD/jbrowse-components/pull/3524
sessionId = sessionId.replace(/ /g, '+')
try {
tableData = await readSession(sessionId)
} catch (e) {
Expand Down

0 comments on commit 88b1639

Please sign in to comment.