Skip to content

Commit 318fd2b

Browse files
author
Chadwick Banning
committed
Build full URI for curl upload command
1 parent 032001b commit 318fd2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet_forge_server/app/views/upload.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
%div.code-block
3737
%pre
3838
:markdown
39-
curl -F "file=@pkg/_<name>_-_<version>_.tar.gz" #{request.env['REQUEST_URI']}
39+
curl -F "file=@pkg/_<name>_-_<version>_.tar.gz" #{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}#{request.env['REQUEST_URI']}
4040

4141
%span.search_error
4242
-if upload_status

0 commit comments

Comments
 (0)