Skip to content

Commit 038df3d

Browse files
committed
fix url param override
1 parent 031d559 commit 038df3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/agentfs/build.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ func Build(ctx context.Context, id string, projectConfig *config.ProjectConfig,
5656

5757
params := url.Values{}
5858
params.Add("agent_id", id)
59-
fullUrl := fmt.Sprintf("%s/build?%s", agentsUrl, params.Encode())
60-
6159
if dockerfile != "" {
6260
params.Add("dockerfile", dockerfile)
6361
}
62+
fullUrl := fmt.Sprintf("%s/build?%s", agentsUrl, params.Encode())
6463

6564
at := auth.NewAccessToken(projectConfig.APIKey, projectConfig.APISecret)
6665
at.SetAgentGrant(&auth.AgentGrant{

0 commit comments

Comments
 (0)