Skip to content

Commit 9ea2b50

Browse files
author
Michael O'Brien
committed
FIX: compiler warning
1 parent 8d90040 commit 9ea2b50

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

dist/ejs.es

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5997,9 +5997,11 @@ UNUSED
59975997
if (fields) {
59985998
for (let [key,value] in fields) {
59995999
write('--' + boundary + "\r\n")
6000-
write('Content-Disposition: form-data; name=' + Uri.encode(key) + "\r\n")
6000+
// write('Content-Disposition: form-data; name=' + Uri.encode(key) + "\r\n")
6001+
write('Content-Disposition: form-data; name=' + key + "\r\n")
60016002
write('Content-Type: application/x-www-form-urlencoded\r\n\r\n')
6002-
write(Uri.encode(value) + "\r\n")
6003+
// write(Uri.encode(value) + "\r\n")
6004+
write(value + "\r\n")
60036005
}
60046006
}
60056007
if (files is String || files is Path) {

dist/ejsLib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56298,6 +56298,7 @@ static EjsVoid *hs_passRequest(Ejs *ejs, EjsHttpServer *server, int argc, EjsAny
5629856298
}
5629956299
event = mprCreateEvent(conn->dispatcher, "RequestWorker", 0, receiveRequest, nreq, MPR_EVENT_DONT_QUEUE);
5630056300
httpUseWorker(conn, nejs->dispatcher, event);
56301+
mprRelease(event);
5630156302
return 0;
5630256303
}
5630356304

src/http/httpLib.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16406,7 +16406,7 @@ static bool parseResponseLine(HttpConn *conn, HttpPacket *packet)
1640616406
tx = conn->tx;
1640716407

1640816408
protocol = getToken(conn, NULL, TOKEN_WORD);
16409-
if (protocol == NULL || protocol == '\0') {
16409+
if (protocol == NULL || *protocol == '\0') {
1641016410
httpBadRequestError(conn, HTTP_ABORT | HTTP_CODE_NOT_ACCEPTABLE, "Unsupported HTTP protocol");
1641116411
return 0;
1641216412
}
@@ -24140,4 +24140,3 @@ static void traceErrorProc(HttpConn *conn, cchar *fmt, ...)
2414024140
by the terms of either license. Consult the LICENSE.md distributed with
2414124141
this software for full details and other copyrights.
2414224142
*/
24143-

0 commit comments

Comments
 (0)