Skip to content

Commit

Permalink
LuaSdk created urls with double slashes ("//") which was failing on s…
Browse files Browse the repository at this point in the history
…ome platforms.

Summary: LuaSdk created urls with double slashes ("//") which was failing on some platforms.

Test Plan: Jenker!

Reviewers: Marco.Williams

Maniphest Tasks: T3654

Differential Revision: https://phabricator.playfab.com/D5120
  • Loading branch information
Paul Gilmore committed Dec 20, 2017
1 parent 225b424 commit 0f29e58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion targets/LuaSdk/EachDefold/PlayFab/PlayFabHttps_Defold.lua
Expand Up @@ -54,7 +54,7 @@ function PlayFabHttps_Defold.MakePlayFabApiCall(urlPath, request, authKey, authV
requestHeaders[authKey] = authValue
end

local fullUrl = "https://" .. PlayFabSettings.settings.titleId .. ".playfabapi.com/" .. urlPath
local fullUrl = "https://" .. PlayFabSettings.settings.titleId .. ".playfabapi.com" .. urlPath

http.request(
fullUrl,
Expand Down
2 changes: 1 addition & 1 deletion targets/LuaSdk/LuaDist/PlayFab/PlayFabHttps_LuaSec.lua
Expand Up @@ -28,7 +28,7 @@ function PlayFabHttps_LuaSec.MakePlayFabApiCall(urlPath, request, authKey, authV
end

local playFabResponse = {}
local fullUrl = "https://" .. PlayFabSettings.settings.titleId .. ".playfabapi.com/" .. urlPath
local fullUrl = "https://" .. PlayFabSettings.settings.titleId .. ".playfabapi.com" .. urlPath
local body, code, headers, status = https.request{
method = "POST",
url = fullUrl,
Expand Down
2 changes: 1 addition & 1 deletion targets/LuaSdk/templates/Corona/PlayFabHttpsCorona.lua.ejs
Expand Up @@ -55,7 +55,7 @@ function PlayFabHttpsCorona.MakePlayFabApiCall(urlPath, request, authKey, authVa
requestHeaders[authKey] = authValue
end

local fullUrl = "https://" .. PlayFabSettings.settings.titleId .. ".playfabapi.com/" .. urlPath
local fullUrl = "https://" .. PlayFabSettings.settings.titleId .. ".playfabapi.com" .. urlPath

network.request(
fullUrl,
Expand Down

0 comments on commit 0f29e58

Please sign in to comment.