Skip to content

Conversation

@justinc1
Copy link
Collaborator

It is safer to always PUT binary data to HC3 with Content-Length HTTP header.
PUT is used only in api, iso (and in future in virtual_disk module).

This does fix uploading virtual disk using raw api module example - examples/virtual_disk.yml.
It will also allow integration test for virtual_disk_info module to pass (the test VD is uploaded using api module).

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Not strictly needed - ISO upload works also without Content-Length.
But it seems reasonable.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Copy link
Collaborator

@anazobec anazobec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The CI docs tests are failing though, but the failure doesn't seem to be related to these minor changes.

@justinc1
Copy link
Collaborator Author

#177 fixed the 'make docs'

@justinc1 justinc1 added the for-v1.2.0 we want this in v1.2.0 label Mar 22, 2023
@justinc1 justinc1 merged commit 37d2db4 into main Mar 22, 2023
@justinc1 justinc1 deleted the http-put-with-content-length branch March 22, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

for-v1.2.0 we want this in v1.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants