File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
packages/jco-std/src/wasi/0.2.x/http/types Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ export function genReadWASIRequestFn(incomingBodyTy: typeof IncomingBody) {
2929 const schemeRaw = wasiIncomingRequest . scheme ( ) ;
3030 let scheme ;
3131 switch ( schemeRaw . tag ) {
32- case 'HTTP' :
33- scheme = 'http'
34- break ;
35- case 'HTTPS' :
36- scheme = 'https'
37- break ;
38- default :
39- throw new Error ( `unexpected scheme [${ schemeRaw . tag } ]` ) ;
32+ case 'HTTP' :
33+ scheme = 'http'
34+ break ;
35+ case 'HTTPS' :
36+ scheme = 'https'
37+ break ;
38+ default :
39+ throw new Error ( `unexpected scheme [${ schemeRaw . tag } ]` ) ;
4040 }
4141
4242 const authority = wasiIncomingRequest . authority ( ) ;
@@ -56,7 +56,7 @@ export function genReadWASIRequestFn(incomingBodyTy: typeof IncomingBody) {
5656 let body : ReadableStream ;
5757 if ( requestShouldHaveBody ( { method } ) ) {
5858 body = new ReadableStream ( {
59- start ( controller ) {
59+ start ( ) {
6060 if ( ! incomingBody ) {
6161 incomingBody = wasiIncomingRequest . consume ( ) ;
6262 incomingBodyStream = incomingBody . stream ( ) ;
You can’t perform that action at this time.
0 commit comments