Skip to content

Commit 02142d9

Browse files
committed
Use path as url
1 parent 1dda415 commit 02142d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/request.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const ReadableStream = require('stream').Readable;
22
const accepts = require('accepts');
33
const typeis = require('type-is');
4-
const path = require('path')
54

65
/**
76
*
@@ -29,7 +28,7 @@ class Request extends ReadableStream {
2928
}, {});
3029

3130
this.path = event.path || '';
32-
this.url = path.join(this.hostname, event.path);
31+
this.url = event.path;
3332
this.params = event.pathParameters;
3433

3534
if (!this.get('Content-Length') && 'body' in event && event.body !== null) {

0 commit comments

Comments
 (0)