Skip to content

Commit 1a66a53

Browse files
committed
Fixes content-type detection problems.
1 parent bed6fac commit 1a66a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jester.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ proc createReq(path, body, ip: string, headers,
160160
if headers["SCRIPT_NAME"] != "":
161161
result.appName = headers["SCRIPT_NAME"]
162162
result.headers = renameHeaders(headers)
163-
if result.headers["Content-Type"] == "application/x-www-form-urlencoded":
163+
if result.headers["Content-Type"].startswith("application/x-www-form-urlencoded"):
164164
parseUrlQuery(body, result.params)
165165
elif result.headers["Content-Type"].startsWith("multipart/form-data"):
166166
result.formData = parseMPFD(result.headers["Content-Type"], body)

0 commit comments

Comments
 (0)