Skip to content

Commit c65db90

Browse files
authored
fix content-type duplication bug (#2247)
1 parent eefa7b5 commit c65db90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/starfall/libs_sh/http.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ function http_library.post(url, payload, callbackSuccess, callbackFail, headers)
116116

117117
if string.lower(k) == "content-type" then
118118
request.type = v
119+
headers[k] = nil
119120
end
120121
end
121122

0 commit comments

Comments
 (0)