Skip to content

Implement SetHTTPRequestRawPostBodyFromFile#24

Merged
KyleSanderson merged 5 commits intoKyleSanderson:masterfrom
Sikarii:master
Sep 2, 2018
Merged

Implement SetHTTPRequestRawPostBodyFromFile#24
KyleSanderson merged 5 commits intoKyleSanderson:masterfrom
Sikarii:master

Conversation

@Sikarii
Copy link
Copy Markdown
Contributor

@Sikarii Sikarii commented Aug 10, 2018

No description provided.

Implement SetHTTPRequestRawPostBodyFromFile
}

char *pBuffer = new char[size + 1];
fread(pBuffer, sizeof(char), size, pInputFile);
Copy link
Copy Markdown

@Headline Headline Aug 10, 2018

Choose a reason for hiding this comment

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

not sure if this is ignored in other places throughout the codebase, but fread’s retval should probably be checked to ensure a read didn’t fail.

Made sure that retval of fread() matches filesize
Copy link
Copy Markdown

@Headline Headline left a comment

Choose a reason for hiding this comment

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

lgtm 🍻

if we could amtl and avoid deletes, i'd prefer that, but since this project doesn't use amtl at all it's no option and out of the scope of this pr to add it.

Sikarii and others added 3 commits August 16, 2018 19:05
Minor code cleanup
Moved sm_SetHTTPRequestRawPostBodyFromFile to its appropriate place in the file
@KyleSanderson KyleSanderson merged commit 87ba54f into KyleSanderson:master Sep 2, 2018
@KyleSanderson
Copy link
Copy Markdown
Owner

Thank you for your contribution.

maximee-leroyy pushed a commit to srcdslab/sm-ext-SteamWorks that referenced this pull request Aug 15, 2022
* Implement SetHTTPRequestRawPostBodyFromFile

* Made sure that retval of fread() matches filesize

* Minor code cleanup

* Moved sm_SetHTTPRequestRawPostBodyFromFile to its appropriate place in the file

* style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants