Skip to content

Commit

Permalink
Merge pull request #67 from 8eecf0d2/master
Browse files Browse the repository at this point in the history
fixed querystring parsing #54
  • Loading branch information
swyxio authored Oct 17, 2018
2 parents 0372683 + 4bafb55 commit ef07a47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/serve.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var express = require("express");
var bodyParser = require("body-parser");
var expressLogging = require("express-logging");
var queryString = require("querystring");
var path = require("path");
var base64 = require("base-64");
var conf = require("./config");
Expand Down Expand Up @@ -69,7 +70,7 @@ function createHandler(dir, static) {
var lambdaRequest = {
path: request.path,
httpMethod: request.method,
queryStringParameters: request.query,
queryStringParameters: queryString.parse(request.url.split("?")[1]),
headers: request.headers,
body: isBase64 ? base64.encode(request.body) : request.body,
isBase64Encoded: isBase64
Expand Down

0 comments on commit ef07a47

Please sign in to comment.