Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brynne8 authored Aug 17, 2019
1 parent ae16897 commit e785ba2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mwapi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Dependencies:
* lua-luajson: JSON parser/encoder for Lua
* lua-multipart-post: HTTP Multipart Post helper
]]
local Utils = require('mwtest/utils')
local https = require('ssl.https')
local json = require('rapidjson')
local ltn12 = require('ltn12')
Expand Down Expand Up @@ -210,7 +211,7 @@ function MediaWikiApi.createRequestBody(arguments)
else
body = ''
end
body = body .. MediaWikiApi.urlEncode(key) .. '=' .. MediaWikiApi.urlEncode(value)
body = body .. Utils.urlEncode(key) .. '=' .. Utils.urlEncode(value)
end
return body or ''
end
Expand Down

0 comments on commit e785ba2

Please sign in to comment.